Class SuppressionMatcher
java.lang.Object
edu.umd.cs.findbugs.SuppressionMatcher
- All Implemented Interfaces:
Matcher
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intprivate final Set<WarningSuppressor> private final Map<String, Collection<WarningSuppressor>> private final Map<ClassAnnotation, Collection<WarningSuppressor>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPackageSuppressor(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) 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:MatcherDetermine whether or not the given BugInstance has the feature this Matcher tests for. -
validateSuppressionUsage
-
writeXML
- Specified by:
writeXMLin interfaceMatcher- Throws:
IOException
-