test/java/lang/reflect/Generics/TestPlainArrayNotGeneric.java
Print this page
rev 3186 : 6880112: Project Coin: Port JDK core library code to use diamond operator
@@ -101,11 +101,11 @@
Type t = types[i];
check(t, elementKind + " " + (i+1) + " of " + what);
}
}
- private static final Set<Type> checking = new HashSet<Type>();
+ private static final Set<Type> checking = new HashSet<>();
private static void check(Type t, String what) {
if (t == null || !checking.add(t))
return;
// Avoid infinite recursion. t can be null e.g. for superclass of Object.