style: 更改变量命名
This commit is contained in:
@@ -22,7 +22,7 @@ public final class CoreBungeeAPI extends CoreAPI {
|
||||
@NotNull
|
||||
private final Gson gson;
|
||||
@NotNull
|
||||
private final Gson humanGson;
|
||||
private final Gson gsonHuman;
|
||||
|
||||
private CoreBungeeAPI(@NotNull ConfigSection config) {
|
||||
super(config);
|
||||
@@ -30,7 +30,7 @@ public final class CoreBungeeAPI extends CoreAPI {
|
||||
.registerTypeAdapter(Component.class, ComponentTypeAdapter.INSTANCE)
|
||||
.registerTypeAdapter(DisplayMessage.class, MessageTypeAdapter.INSTANCE)
|
||||
.create();
|
||||
humanGson = new GsonBuilder()
|
||||
gsonHuman = new GsonBuilder()
|
||||
.registerTypeAdapter(Component.class, ComponentTypeAdapter.INSTANCE)
|
||||
.registerTypeAdapter(DisplayMessage.class, MessageTypeAdapter.INSTANCE)
|
||||
.serializeNulls()
|
||||
@@ -62,7 +62,7 @@ public final class CoreBungeeAPI extends CoreAPI {
|
||||
|
||||
@Override
|
||||
public @NotNull Gson getGsonHuman() {
|
||||
return humanGson;
|
||||
return gsonHuman;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user