in src/main/java/com/aliyun/ha3engine/jdbc/common/utils/JsonUtils.java [63:77]
public Integer deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
throws JsonParseException {
try {
//定义为int类型,如果后台返回""或者null,则返回0
if (json.getAsString().equals("") || json.getAsString().equals("null")) {
return 0;
}
} catch (Exception ignore) {
}
try {
return json.getAsInt();
} catch (NumberFormatException e) {
throw new JsonSyntaxException(e);
}
}