equal
deleted
inserted
replaced
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. |