mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-159541 More improvements in UnstableApiUsageInspection
This commit is contained in:
@@ -98,7 +98,7 @@ public class UnstableApiUsageInspection extends LocalInspectionTool {
|
||||
if (containingVirtualFile == null) {
|
||||
return false;
|
||||
}
|
||||
return ProjectFileIndex.getInstance(element.getProject()).isInLibrary(containingVirtualFile);
|
||||
return ProjectFileIndex.getInstance(element.getProject()).isInLibraryClasses(containingVirtualFile);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@@ -123,9 +123,7 @@ public class UnstableApiUsageInspection extends LocalInspectionTool {
|
||||
if (((ResolvingHint)reference).canResolveTo(PsiModifierListOwner.class)) {
|
||||
return (PsiModifierListOwner)reference.resolve();
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
PsiElement resolvedElement = reference.resolve();
|
||||
|
||||
Reference in New Issue
Block a user