perf(hamster-ball-bridge): 使用 gson 序列化数据

This commit is contained in:
2022-12-11 03:49:40 +08:00
parent 0a77aef84e
commit 78de3e576c
3 changed files with 6 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
package cn.hamster3.service.common.entity;
import cn.hamster3.mc.plugin.core.common.constant.CoreConstantObjects;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
@@ -196,6 +197,6 @@ public class ServiceMessageInfo {
@Override
public String toString() {
return saveToJson().toString();
return CoreConstantObjects.GSON.toJson(this);
}
}