Skip to content

Commit a35ee27

Browse files
committed
Fix: Unable to invoke no-args constructor for interface org.maxgamer.quickshop.api.shop.ShopModerator. Register an InstanceCreator with Gson for this type may fix this problem.
1 parent 75431ef commit a35ee27

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/main/java/org/maxgamer/quickshop/shop/JavaShopModerator.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* This file is a part of project QuickShop, the name is ShopModerator.java
2+
* This file is a part of project QuickShop, the name is JavaShopModerator.java
33
* Copyright (C) PotatoCraft Studio and contributors
44
*
55
* This program is free software: you can redistribute it and/or modify it
@@ -22,7 +22,7 @@
2222
import com.google.gson.Gson;
2323
import com.google.gson.JsonSyntaxException;
2424
import lombok.EqualsAndHashCode;
25-
import lombok.NonNull;
25+
import lombok.NoArgsConstructor;
2626
import org.jetbrains.annotations.NotNull;
2727
import org.maxgamer.quickshop.api.shop.ShopModerator;
2828
import org.maxgamer.quickshop.util.JsonUtil;
@@ -36,11 +36,9 @@
3636
* You must save the ContainerShop after modify this
3737
*/
3838
@EqualsAndHashCode
39+
@NoArgsConstructor
3940
public class JavaShopModerator implements ShopModerator, Cloneable {
40-
@NonNull
4141
private UUID owner;
42-
43-
@NonNull
4442
private List<UUID> staffs;
4543

4644
private JavaShopModerator(@NotNull JavaShopModerator shopModerator) {

0 commit comments

Comments
 (0)