mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NullableStuffInspectionBase: cheaper scope calculation
This commit is contained in:
+3
-2
@@ -296,8 +296,9 @@ public class NullableStuffInspectionBase extends AbstractBaseJavaLocalInspection
|
||||
@NotNull Set<? super Couple<PsiType>> visited) {
|
||||
if (!visited.add(Couple.of(expectedType, assignedType))) return false;
|
||||
|
||||
if (isNullityConflict(JavaGenericsUtil.getCollectionItemType(expectedType, place.getResolveScope()),
|
||||
JavaGenericsUtil.getCollectionItemType(assignedType, place.getResolveScope()))) {
|
||||
GlobalSearchScope scope = holder.getFile().getResolveScope();
|
||||
if (isNullityConflict(JavaGenericsUtil.getCollectionItemType(expectedType, scope),
|
||||
JavaGenericsUtil.getCollectionItemType(assignedType, scope))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user