[java-inspection] UnusedDeclarationPresentation: fix wrong condition

GitOrigin-RevId: d2161bafe0ab66a02a2ed7dd58758070fc3b09e5
This commit is contained in:
Tagir Valeev
2024-04-25 15:11:23 +02:00
committed by intellij-monorepo-bot
parent bcc46152aa
commit cac70088d2

View File

@@ -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;
}