From 840df398c2848edecc07f4d386447e6550cc77d4 Mon Sep 17 00:00:00 2001 From: anna Date: Thu, 9 Feb 2012 09:46:53 +0100 Subject: [PATCH] EA-33601 - ISE: RedundantSuppressInspection.checkElement --- .../intellij/codeInspection/RedundantSuppressInspection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/java-impl/src/com/intellij/codeInspection/RedundantSuppressInspection.java b/java/java-impl/src/com/intellij/codeInspection/RedundantSuppressInspection.java index 6d2efd17fbb9..e8cecdcef73c 100644 --- a/java/java-impl/src/com/intellij/codeInspection/RedundantSuppressInspection.java +++ b/java/java-impl/src/com/intellij/codeInspection/RedundantSuppressInspection.java @@ -167,14 +167,14 @@ public class RedundantSuppressInspection extends GlobalInspectionTool{ suppressedTools.add(tool); } else { iterator.remove(); - if (ids.isEmpty()) break; + break; } } else if (tool.getShortName().equals(shortName)) { //ignore global unused as it won't be checked anyway if (!(tool instanceof LocalInspectionToolWrapper) && !(tool instanceof GlobalInspectionToolWrapper)) { iterator.remove(); - if (ids.isEmpty()) break; + break; } else { suppressedTools.add(tool); }