mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 10:07:41 +07:00
suppressions: skip doc owners without modifier lists, e.g. anonymous classes (IDEA-154026)
This commit is contained in:
@@ -210,6 +210,9 @@ public class JavaSuppressionUtil {
|
||||
}
|
||||
|
||||
PsiModifierListOwner up = PsiTreeUtil.getNonStrictParentOfType(place, PsiVariable.class, PsiDocCommentOwner.class);
|
||||
if (up instanceof PsiDocCommentOwner && up.getModifierList() == null) {
|
||||
up = PsiTreeUtil.getParentOfType(up, PsiVariable.class, PsiDocCommentOwner.class);
|
||||
}
|
||||
if (up instanceof PsiVariable) {
|
||||
PsiVariable local = (PsiVariable)up;
|
||||
if (getAnnotationMemberSuppressedIn(local, toolId) != null) {
|
||||
|
||||
Reference in New Issue
Block a user