From d0c17f741953370a804e27569775b0de132bcbe3 Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Tue, 28 Jan 2020 09:18:36 +0800 Subject: [PATCH] tweak code Former-commit-id: d1c4831c4a70f52727cc5da1619c3d9dbde8555a --- .../java/org/maxgamer/quickshop/Shop/DisplayItem.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/main/java/org/maxgamer/quickshop/Shop/DisplayItem.java b/src/main/java/org/maxgamer/quickshop/Shop/DisplayItem.java index df3173f490..dfa4d80e50 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/DisplayItem.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/DisplayItem.java @@ -19,18 +19,14 @@ package org.maxgamer.quickshop.Shop; -import com.bekvon.bukkit.residence.commands.contract; -import com.google.common.collect.Collections2; import com.google.common.collect.Lists; import com.google.gson.Gson; import com.google.gson.JsonSyntaxException; import java.util.ArrayList; -import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Map.Entry; -import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.entity.Entity; @@ -226,12 +222,9 @@ static DisplayType getNowUsing(@Nullable ItemStack item) { continue; } // list - Util.debugLog(itemSection.toString() + " @ LEVEL 2, " + itemSection.getClass().getName()); + Util.debugLog(itemSection+ " @ LEVEL 2, " + itemSection.getClass().getName()); if (itemSection.getValue() instanceof List) { - List infoSections = List.class.cast(itemSection.getValue()); - if (infoSections == null) { - continue; - } + List infoSections = (List) itemSection.getValue(); for (Object $infoSection : infoSections) { if ($infoSection == null) { continue;