Skip to content

Commit

Permalink
Apply NETBEANS-906 patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffrey-easyesi committed Nov 19, 2018
1 parent 038e3ca commit 2813168
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2545,7 +2545,6 @@ public <T extends JCTree> T copy(T tree, JCTree p) {
// prefix it to the constructor arguments
// "encl" will be cleared in TransTypes
if (tree.encl != null && !clazztype.tsym.isInterface()) {
tree.args = tree.args.prepend(makeNullCheck(tree.encl));
finalargtypes = argtypes.prepend(tree.encl.type);
} else {
finalargtypes = argtypes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1708,7 +1708,7 @@ public List<JCExpression> getTypeArguments() {
public JCExpression getIdentifier() { return clazz; }
@DefinedBy(Api.COMPILER_TREE)
public List<JCExpression> getArguments() {
return encl != null && def != null ? args.tail : args;
return args;
}
@DefinedBy(Api.COMPILER_TREE)
public JCClassDecl getClassBody() { return def; }
Expand Down

0 comments on commit 2813168

Please sign in to comment.