use null-safe equals

This commit is contained in:
Sculas 2022-03-22 17:03:56 +01:00 committed by GitHub
parent ea48ec9800
commit 6e7db39e66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ public class CompiledJavaPluginLaunchStrategy implements PluginLaunchStrategy {
LoadedNodeData pdata = null;
for (LoadedNodeData d : set) {
ClassNode cn = d.node;
if (cn.superName.equals(PLUGIN_CLASS_NAME)) {
if (Objects.equals(cn.superName, PLUGIN_CLASS_NAME)) {
if (pdata == null) {
pdata = d;
} else {