mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
[java-inspection] UnusedDeclarationPresentation: fix wrong condition
GitOrigin-RevId: d2161bafe0ab66a02a2ed7dd58758070fc3b09e5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bcc46152aa
commit
cac70088d2
@@ -119,7 +119,6 @@ public class UnusedDeclarationPresentation extends DefaultInspectionToolPresenta
|
||||
if (!((RefElementImpl)refElement).hasSuspiciousCallers() || ((RefJavaElementImpl)refElement).isSuspiciousRecursive()) return 1;
|
||||
|
||||
for (RefElement element : refElement.getInReferences()) {
|
||||
if (refElement instanceof RefFile) return 1;
|
||||
if (((UnusedDeclarationInspectionBase)myTool).isEntryPoint(element)) return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user