mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-07-01 04:47:26 +00:00
[Fix] Core 修复 PluginDependencyJsonSerializer 中不可能出现的情况;
[Fix] PluginDependencyJsonSerializer 移除 'PluginVersionSupported != null' 的情况判断, 从 PluginDependency 的源码设计来讲一般不会出现这个问题;
This commit is contained in:
@ -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());
|
||||
|
Reference in New Issue
Block a user