From b221e49bb5d539ecaf643240d3c40ccfe58bf92d Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Sat, 25 May 2019 20:29:02 +0800 Subject: [PATCH] Clean up codes Former-commit-id: 1435100918acf1815f567bcc0d89df0722f5db1e [formerly cc87dbc1a9e1468a78145268c2622f128d705d06] Former-commit-id: a92ca533e0a02ed7b2f1d2fb06f01f53edadd49d --- src/main/java/org/maxgamer/quickshop/Shop/Info.java | 2 +- .../java/org/maxgamer/quickshop/Shop/InventoryPreview.java | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/maxgamer/quickshop/Shop/Info.java b/src/main/java/org/maxgamer/quickshop/Shop/Info.java index 7dfb9e3a1..046371f93 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/Info.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/Info.java @@ -31,7 +31,7 @@ public class Info { } /** * Get shop is or not has changed. - * @param Shop shop, The need checked with this shop. + * @param shop, The need checked with this shop. * */ public boolean hasChanged(Shop shop) { if (this.shop.isUnlimited() != shop.isUnlimited()) diff --git a/src/main/java/org/maxgamer/quickshop/Shop/InventoryPreview.java b/src/main/java/org/maxgamer/quickshop/Shop/InventoryPreview.java index 96f3a2385..56072a4a7 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/InventoryPreview.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/InventoryPreview.java @@ -14,12 +14,11 @@ import org.maxgamer.quickshop.Util.MsgUtil; public class InventoryPreview implements Listener { - ItemStack itemStack; - Inventory inventory; - Player player; + private ItemStack itemStack; + private Inventory inventory; + private Player player; public InventoryPreview(ItemStack itemStack,Player player) { - this.itemStack=itemStack.clone(); this.player=player; if(this.itemStack.getItemMeta().hasLore()) {