[Optimize] Core 修复 PluginDependencyJsonSerializer 代码规范上的错误(单行字符不超过 120 字符);

[Optimize] PluginDependencyJsonSerializer 修复代码规范上的问题(单行字符不超过 120 字符);
This commit is contained in:
LamGC 2020-11-08 20:30:54 +08:00
parent 311afd431b
commit b82bcd5e57
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -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");
} }