mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix one-tool suppressions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user