Merge remote-tracking branch 'origin/master' into develar/is
[idea/community.git] / platform / lang-impl / src / com / intellij / codeInspection / ui / DefaultInspectionToolPresentation.java
index b2373155fbea16a154b3045edd30e0d896c728db..7b626e7200972aa7776d187df88a6509efa9915f 100644 (file)
@@ -360,6 +360,14 @@ public class DefaultInspectionToolPresentation implements ProblemDescriptionsPro
     getIgnoredElements().remove(refEntity);
   }
 
+  @Override
+  public void amnesty(RefEntity refEntity, CommonProblemDescriptor descriptor) {
+    final CommonProblemDescriptor[] ignoredDescriptors = getIgnoredElements().get(refEntity);
+    if (ignoredDescriptors != null) {
+      getIgnoredElements().put(refEntity, ArrayUtil.remove(ignoredDescriptors, descriptor));
+    }
+  }
+
   @Override
   public void ignoreProblem(RefEntity refEntity, CommonProblemDescriptor problem, int idx) {
     if (refEntity == null) return;