< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/tree/TreeScanner.java

Print this page

        

@@ -297,11 +297,16 @@
         scan(tree.expr);
     }
 
     public void visitTypeTest(JCInstanceOf tree) {
         scan(tree.expr);
-        scan(tree.clazz);
+        scan(tree.pattern);
+    }
+
+    public void visitBindingPattern(JCBindingPattern tree) {
+        if (tree.vartype != null)
+            scan(tree.vartype);
     }
 
     public void visitIndexed(JCArrayAccess tree) {
         scan(tree.indexed);
         scan(tree.index);
< prev index next >