fixed IdeaDecompilerTest.testStubCompatibility

This commit is contained in:
Egor.Ushakov
2017-01-17 21:38:48 +03:00
parent 6713b9c495
commit 85f61bee81

View File

@@ -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;
}
}
}