[Fix] Core 修复 PluginDependencyJsonSerializer 中不可能出现的情况;

[Fix] PluginDependencyJsonSerializer 移除 'PluginVersionSupported != null' 的情况判断, 从 PluginDependency 的源码设计来讲一般不会出现这个问题;
This commit is contained in:
LamGC 2020-11-08 21:34:46 +08:00
parent f0e0956580
commit 789c86406c
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -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());