mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix test by reporting entire local variable declaration
This commit is contained in:
+2
-2
@@ -269,8 +269,8 @@ public class RedundantSuppressInspectionBase extends GlobalInspectionTool {
|
||||
myQuickFixes.put(key, fix);
|
||||
}
|
||||
PsiElement identifier;
|
||||
if ((suppressedScope instanceof PsiNameIdentifierOwner)) {
|
||||
identifier = ((PsiNameIdentifierOwner)documentedElement).getNameIdentifier();
|
||||
if (suppressedScope instanceof PsiNameIdentifierOwner && suppressedScope instanceof PsiJavaDocumentedElement) {
|
||||
identifier = ((PsiNameIdentifierOwner)suppressedScope).getNameIdentifier();
|
||||
}
|
||||
else {
|
||||
identifier = suppressedScope;
|
||||
|
||||
Reference in New Issue
Block a user