mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
accept all as suppress for all (IDEA-85806)
This commit is contained in:
@@ -137,7 +137,7 @@ public class RedundantSuppressInspection extends GlobalInspectionTool{
|
||||
String idsString = SuppressManager.getInstance().getSuppressedInspectionIdsIn(owner);
|
||||
if (idsString != null && idsString.length() != 0) {
|
||||
List<String> ids = StringUtil.split(idsString, ",");
|
||||
if (IGNORE_ALL && ids.contains(SuppressionUtil.ALL)) return;
|
||||
if (IGNORE_ALL && (ids.contains(SuppressionUtil.ALL) || ids.contains(SuppressionUtil.ALL.toLowerCase()))) return;
|
||||
Collection<String> suppressed = suppressedScopes.get(owner);
|
||||
if (suppressed == null) {
|
||||
suppressed = ids;
|
||||
|
||||
@@ -58,7 +58,7 @@ public class SuppressionUtil {
|
||||
|
||||
for (@NonNls String id : ids) {
|
||||
@NonNls String trim = id.trim();
|
||||
if (trim.equals(inspectionToolID) || trim.equals(ALL)) return true;
|
||||
if (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.equals(toolId) || suppression.equals(SuppressionUtil.ALL)){
|
||||
if (suppression.equalsIgnoreCase(SuppressionUtil.ALL)){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user