mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
resolve yellow code
This commit is contained in:
+3
-3
@@ -61,7 +61,7 @@ public class ObscureThrownExceptionsIntention extends MutablyNamedIntention {
|
||||
if (firstClass == null || types.length == 1) {
|
||||
return firstClass;
|
||||
}
|
||||
Set<PsiClass> sourceSet = new HashSet();
|
||||
Set<PsiClass> sourceSet = new HashSet<>();
|
||||
PsiClass aClass = firstClass;
|
||||
while (aClass != null) {
|
||||
sourceSet.add(aClass);
|
||||
@@ -70,7 +70,7 @@ public class ObscureThrownExceptionsIntention extends MutablyNamedIntention {
|
||||
if (sourceSet.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
Set<PsiClass> targetSet = new HashSet();
|
||||
Set<PsiClass> targetSet = new HashSet<>();
|
||||
final int max = types.length - 1;
|
||||
for (int i = 1; i < max; i++) {
|
||||
final PsiClassType classType = types[i];
|
||||
@@ -82,7 +82,7 @@ public class ObscureThrownExceptionsIntention extends MutablyNamedIntention {
|
||||
aClass1 = aClass1.getSuperClass();
|
||||
}
|
||||
sourceSet = targetSet;
|
||||
targetSet = new HashSet();
|
||||
targetSet = new HashSet<>();
|
||||
}
|
||||
PsiClass aClass1 = types[max].resolve();
|
||||
while (aClass1 != null && !sourceSet.contains(aClass1)) {
|
||||
|
||||
Reference in New Issue
Block a user