diff --git a/src/main/java/org/maxgamer/quickshop/Shop/ShopModerator.java b/src/main/java/org/maxgamer/quickshop/Shop/ShopModerator.java index e1991afa2..0c4dec5f8 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/ShopModerator.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/ShopModerator.java @@ -22,8 +22,9 @@ public class ShopModerator { Gson gson = new Gson(); return gson.toJson(shopModerator); //Use Gson serialize this class } - private UUID owner; - private ArrayList staffs; + + @NonNull private UUID owner; + @NonNull private ArrayList staffs; private ShopModerator(@NotNull ShopModerator shopModerator) { this.owner = shopModerator.owner; @@ -37,7 +38,7 @@ public class ShopModerator { */ public ShopModerator(@NotNull UUID owner) { this.owner = owner; - this.staffs = new ArrayList(); + this.staffs = new ArrayList<>(); } /** @@ -47,7 +48,7 @@ public class ShopModerator { */ public ShopModerator(@NotNull UUID owner, @NotNull ArrayList staffs) { this.owner = owner; - this.staffs = new ArrayList(); + this.staffs = new ArrayList<>(); } /** @@ -69,8 +70,9 @@ public class ShopModerator { staffs.clear(); } + @SuppressWarnings("MethodDoesntCallSuperMethod") public ShopModerator clone() { - return new ShopModerator(this); + return new ShopModerator(this.owner, this.staffs); } @Override