Package edu.umd.cs.findbugs
Class SuppressionMatcher
java.lang.Object
edu.umd.cs.findbugs.SuppressionMatcher
- All Implemented Interfaces:
Matcher
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
private final Set
<WarningSuppressor> private final Map
<String, Collection<WarningSuppressor>> private final Map
<ClassAnnotation, Collection<WarningSuppressor>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPackageSuppressor
(PackageWarningSuppressor suppressor) void
addSuppressor
(ClassWarningSuppressor suppressor) int
count()
boolean
match
(BugInstance b) Determine whether or not the given BugInstance has the feature this Matcher tests for.void
validateSuppressionUsage
(BugReporter bugReporter, UselessSuppressionDetector detector) void
-
Field Details
-
suppressedWarnings
-
suppressedPackageWarnings
-
matched
-
count
int count
-
-
Constructor Details
-
SuppressionMatcher
public SuppressionMatcher()
-
-
Method Details
-
addPackageSuppressor
-
addSuppressor
-
count
public int count() -
match
Description copied from interface:Matcher
Determine whether or not the given BugInstance has the feature this Matcher tests for. -
validateSuppressionUsage
-
writeXML
- Specified by:
writeXML
in interfaceMatcher
- Throws:
IOException
-