Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit abc9484

Browse files
committed
[v2.1.1-JV8]
1 parent ff71dcf commit abc9484

File tree

1 file changed

+11
-0
lines changed
  • src/main/java/com/github/yuttyann/scriptblockplus/file/json

1 file changed

+11
-0
lines changed

src/main/java/com/github/yuttyann/scriptblockplus/file/json/BaseJson.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,4 +575,15 @@ public boolean equals(@Nullable Object obj) {
575575
BaseJson<?> baseJson = (BaseJson<?>) obj;
576576
return Objects.equals(name, baseJson.name) && Objects.equals(file, baseJson.file);
577577
}
578+
579+
@Override
580+
@NotNull
581+
public String toString() {
582+
try {
583+
return GSON_HOLDER.getGson().toJson(copyElements(), getCollectionType());
584+
} catch (ClassNotFoundException e) {
585+
e.printStackTrace();
586+
}
587+
return "[]";
588+
}
578589
}

0 commit comments

Comments
 (0)