fixed IdeaDecompilerTest.testStubCompatibility

master
Egor.Ushakov 8 years ago
parent 6713b9c495
commit 85f61bee81
  1. 4
      src/org/jetbrains/java/decompiler/main/rels/NestedClassProcessor.java

@ -405,8 +405,10 @@ public class NestedClassProcessor {
MethodWrapper method = nestedNode.getWrapper().getMethodWrapper(CodeConstants.INIT_NAME, entry.getKey());
method.signatureFields = new ArrayList<>();
boolean firstSignField = nestedNode.type != ClassNode.CLASS_ANONYMOUS;
for (VarFieldPair pair : entry.getValue()) {
method.signatureFields.add(pair == null || pair.fieldKey.isEmpty() ? null : pair.varPair);
method.signatureFields.add(pair == null || (!firstSignField && pair.fieldKey.isEmpty()) ? null : pair.varPair);
firstSignField = false;
}
}
}

Loading…
Cancel
Save