Skip to content

Commit

Permalink
fixed IdeaDecompilerTest.testStubCompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
gorrus committed Jan 17, 2017
1 parent e07e6c2 commit 6370808
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -405,8 +405,10 @@ public int processExprent(Exprent exprent) {
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;
}
}
}
Expand Down

0 comments on commit 6370808

Please sign in to comment.