mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-29 22:27:33 +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
|
||||
* @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 = "*";
|
||||
|
||||
@Override
|
||||
@ -44,7 +45,8 @@ public class PluginDependencyJsonSerializer implements JsonSerializer<PluginDepe
|
||||
}
|
||||
|
||||
@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()) {
|
||||
throw new JsonParseException("Only JsonPrimitive types are supported for conversion");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user