fix one-tool suppressions

This commit is contained in:
Anna Kozlova
2012-05-11 23:17:09 +04:00
parent 874afc0153
commit 652bcb9b66
2 changed files with 2 additions and 2 deletions
@@ -58,7 +58,7 @@ public class SuppressionUtil {
for (@NonNls String id : ids) {
@NonNls String trim = id.trim();
if (trim.equalsIgnoreCase(ALL)) return true;
if (trim.equals(inspectionToolID) || trim.equalsIgnoreCase(ALL)) return true;
}
return false;
}
@@ -255,7 +255,7 @@ public abstract class RefElementImpl extends RefEntityImpl implements RefElement
public boolean isSuppressed(final String toolId) {
if (mySuppressions != null) {
for (@NonNls String suppression : mySuppressions) {
if (suppression.equalsIgnoreCase(SuppressionUtil.ALL)){
if (suppression.equals(toolId) || suppression.equalsIgnoreCase(SuppressionUtil.ALL)){
return true;
}
}