use null-safe equals
This commit is contained in:
parent
ea48ec9800
commit
6e7db39e66
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ public class CompiledJavaPluginLaunchStrategy implements PluginLaunchStrategy {
|
||||||
LoadedNodeData pdata = null;
|
LoadedNodeData pdata = null;
|
||||||
for (LoadedNodeData d : set) {
|
for (LoadedNodeData d : set) {
|
||||||
ClassNode cn = d.node;
|
ClassNode cn = d.node;
|
||||||
if (cn.superName.equals(PLUGIN_CLASS_NAME)) {
|
if (Objects.equals(cn.superName, PLUGIN_CLASS_NAME)) {
|
||||||
if (pdata == null) {
|
if (pdata == null) {
|
||||||
pdata = d;
|
pdata = d;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue