Package edu.umd.cs.findbugs
Class SuppressionMatcher
- java.lang.Object
-
- edu.umd.cs.findbugs.SuppressionMatcher
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intcountprivate java.util.Set<WarningSuppressor>matchedprivate java.util.Map<java.lang.String,java.util.Collection<WarningSuppressor>>suppressedPackageWarningsprivate java.util.Map<ClassAnnotation,java.util.Collection<WarningSuppressor>>suppressedWarnings
-
Constructor Summary
Constructors Constructor Description SuppressionMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPackageSuppressor(PackageWarningSuppressor suppressor)voidaddSuppressor(ClassWarningSuppressor suppressor)intcount()booleanmatch(BugInstance b)Determine whether or not the given BugInstance has the feature this Matcher tests for.voidvalidateSuppressionUsage(BugReporter bugReporter, UselessSuppressionDetector detector)voidwriteXML(XMLOutput xmlOutput, boolean disabled)
-
-
-
Field Detail
-
suppressedWarnings
private final java.util.Map<ClassAnnotation,java.util.Collection<WarningSuppressor>> suppressedWarnings
-
suppressedPackageWarnings
private final java.util.Map<java.lang.String,java.util.Collection<WarningSuppressor>> suppressedPackageWarnings
-
matched
private final java.util.Set<WarningSuppressor> matched
-
count
int count
-
-
Method Detail
-
addPackageSuppressor
public void addPackageSuppressor(PackageWarningSuppressor suppressor)
-
addSuppressor
public void addSuppressor(ClassWarningSuppressor suppressor)
-
count
public int count()
-
match
public boolean match(BugInstance b)
Description copied from interface:MatcherDetermine whether or not the given BugInstance has the feature this Matcher tests for.
-
validateSuppressionUsage
public void validateSuppressionUsage(BugReporter bugReporter, UselessSuppressionDetector detector)
-
-