mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Optimize] Core 修复 PluginDependencyJsonSerializer 代码规范上的错误(单行字符不超过 120 字符);
[Optimize] PluginDependencyJsonSerializer 修复代码规范上的问题(单行字符不超过 120 字符);
This commit is contained in:
parent
311afd431b
commit
b82bcd5e57
@ -27,7 +27,8 @@ import java.lang.reflect.Type;
|
|||||||
* @see PluginDependency
|
* @see PluginDependency
|
||||||
* @author LamGC
|
* @author LamGC
|
||||||
*/
|
*/
|
||||||
public class PluginDependencyJsonSerializer implements JsonSerializer<PluginDependency>, JsonDeserializer<PluginDependency> {
|
public class PluginDependencyJsonSerializer
|
||||||
|
implements JsonSerializer<PluginDependency>, JsonDeserializer<PluginDependency> {
|
||||||
private final static String PLUGIN_VERSION_SUPPORT_ALL = "*";
|
private final static String PLUGIN_VERSION_SUPPORT_ALL = "*";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -44,7 +45,8 @@ public class PluginDependencyJsonSerializer implements JsonSerializer<PluginDepe
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PluginDependency deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
public PluginDependency deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
|
||||||
|
throws JsonParseException {
|
||||||
if (!json.isJsonPrimitive()) {
|
if (!json.isJsonPrimitive()) {
|
||||||
throw new JsonParseException("Only JsonPrimitive types are supported for conversion");
|
throw new JsonParseException("Only JsonPrimitive types are supported for conversion");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user