mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-29 22:27:33 +00:00
[Fix] Core 修复 PluginDependencyJsonSerializer 中不可能出现的情况;
[Fix] PluginDependencyJsonSerializer 移除 'PluginVersionSupported != null' 的情况判断, 从 PluginDependency 的源码设计来讲一般不会出现这个问题;
This commit is contained in:
parent
f0e0956580
commit
789c86406c
@ -38,7 +38,7 @@ public class PluginDependencyJsonSerializer
|
||||
if (src.isOptional()) {
|
||||
builder.append('?');
|
||||
}
|
||||
if (src.getPluginVersionSupport() != null || !PLUGIN_VERSION_SUPPORT_ALL.equals(pluginVersionSupport)) {
|
||||
if (!PLUGIN_VERSION_SUPPORT_ALL.equals(pluginVersionSupport)) {
|
||||
builder.append('@').append(pluginVersionSupport);
|
||||
}
|
||||
return new JsonPrimitive(builder.toString());
|
||||
|
Loading…
Reference in New Issue
Block a user