java-decompiler: optimization (empty lists allocation avoided)
This commit is contained in:
@@ -201,7 +201,7 @@ public class NestedClassProcessor {
|
||||
StructEnclosingMethodAttribute attr =
|
||||
(StructEnclosingMethodAttribute)child.classStruct.getAttributes().getWithKey("EnclosingMethod");
|
||||
if (attr != null && attr.getMethodName() != null) {
|
||||
if (node.classStruct.qualifiedName.equals(attr.getClassname()) &&
|
||||
if (node.classStruct.qualifiedName.equals(attr.getClassName()) &&
|
||||
node.classStruct.getMethod(attr.getMethodName(), attr.getMethodDescriptor()) != null) {
|
||||
child.enclosingMethod = InterpreterUtil.makeUniqueKey(attr.getMethodName(), attr.getMethodDescriptor());
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user