mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inspection toolwindow: do not need amnesty descriptor if containing entity is amnestied (IDEA-157558)
This commit is contained in:
+3
-1
@@ -363,7 +363,9 @@ public class DefaultInspectionToolPresentation implements ProblemDescriptionsPro
|
||||
@Override
|
||||
public void amnesty(RefEntity refEntity, CommonProblemDescriptor descriptor) {
|
||||
final CommonProblemDescriptor[] ignoredDescriptors = getIgnoredElements().get(refEntity);
|
||||
getIgnoredElements().put(refEntity, ArrayUtil.remove(ignoredDescriptors, descriptor));
|
||||
if (ignoredDescriptors != null) {
|
||||
getIgnoredElements().put(refEntity, ArrayUtil.remove(ignoredDescriptors, descriptor));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user