jdk/test/java/lang/reflect/Generics/TestPlainArrayNotGeneric.java
changeset 7803 56bc97d69d93
parent 5506 202f599c92aa
child 9035 1255eb81cc2f
equal deleted inserted replaced
7802:74f2ee2b62ba 7803:56bc97d69d93
   101             Type t = types[i];
   101             Type t = types[i];
   102             check(t, elementKind + " " + (i+1) + " of " + what);
   102             check(t, elementKind + " " + (i+1) + " of " + what);
   103         }
   103         }
   104     }
   104     }
   105 
   105 
   106     private static final Set<Type> checking = new HashSet<Type>();
   106     private static final Set<Type> checking = new HashSet<>();
   107 
   107 
   108     private static void check(Type t, String what) {
   108     private static void check(Type t, String what) {
   109         if (t == null || !checking.add(t))
   109         if (t == null || !checking.add(t))
   110             return;
   110             return;
   111         // Avoid infinite recursion.  t can be null e.g. for superclass of Object.
   111         // Avoid infinite recursion.  t can be null e.g. for superclass of Object.