mirror of
https://gitee.com/BDWare/common
synced 2026-01-28 16:29:29 +00:00
chore: update build.gradle
upgrade io.netty:netty-all from 4.1.52.Final to 4.1.63.Final; optimize imports in JsonUtil
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
package org.bdware.sc.util;
|
||||
|
||||
import com.google.gson.*;
|
||||
import com.google.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Reader;
|
||||
import java.io.Writer;
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
public class JsonUtil {
|
||||
@@ -43,9 +40,11 @@ public class JsonUtil {
|
||||
public static JsonObject parseStringAsJsonObject(String json) {
|
||||
return JsonParser.parseString(json).getAsJsonObject();
|
||||
}
|
||||
|
||||
public static JsonElement parseString(String json) {
|
||||
return JsonParser.parseString(json);
|
||||
}
|
||||
|
||||
public static JsonObject parseReaderAsJsonObject(Reader reader) {
|
||||
return JsonParser.parseReader(reader).getAsJsonObject();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user