Commit fb13472 1 parent d5642cd commit fb13472 Copy full SHA for fb13472
File tree 1 file changed +9
-0
lines changed
test/langtools/tools/javac/tree
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 79
79
import com .sun .tools .javac .tree .JCTree .JCAnnotatedType ;
80
80
import com .sun .tools .javac .tree .JCTree .JCCase ;
81
81
import com .sun .tools .javac .tree .JCTree .JCCompilationUnit ;
82
+ import com .sun .tools .javac .tree .JCTree .JCMethodDecl ;
82
83
import com .sun .tools .javac .tree .JCTree .JCNewClass ;
83
84
import com .sun .tools .javac .tree .JCTree .JCVariableDecl ;
84
85
import com .sun .tools .javac .tree .TreeInfo ;
@@ -419,6 +420,14 @@ private boolean isAnnotatedArray(JCTree tree) {
419
420
((JCAnnotatedType )tree ).underlyingType .hasTag (TYPEARRAY );
420
421
}
421
422
423
+ @ Override
424
+ public void visitMethodDef (JCMethodDecl tree ) {
425
+ // ignore compact record constructors
426
+ if ((tree .mods .flags & Flags .COMPACT_RECORD_CONSTRUCTOR ) == 0 ) {
427
+ super .visitMethodDef (tree );
428
+ }
429
+ }
430
+
422
431
@ Override
423
432
public void visitVarDef (JCVariableDecl tree ) {
424
433
// enum member declarations are desugared in the parser and have
You can’t perform that action at this time.
0 commit comments