Package edu.umd.cs.findbugs
Class WarningSuppressor
java.lang.Object
edu.umd.cs.findbugs.WarningSuppressor
- All Implemented Interfaces:
Matcher
- Direct Known Subclasses:
ClassWarningSuppressor
,PackageWarningSuppressor
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
WarningSuppressor
(String bugPattern, edu.umd.cs.findbugs.annotations.SuppressMatchType matchType) -
Method Summary
Modifier and TypeMethodDescriptionabstract BugInstance
boolean
boolean
match
(BugInstance bugInstance) Determine whether or not the given BugInstance has the feature this Matcher tests for.void
-
Field Details
-
USELESS_SUPPRESSION_ABB
- See Also:
-
PRIORITY
protected static final int PRIORITY- See Also:
-
bugPattern
-
matchType
protected final edu.umd.cs.findbugs.annotations.SuppressMatchType matchType
-
-
Constructor Details
-
WarningSuppressor
protected WarningSuppressor(String bugPattern, edu.umd.cs.findbugs.annotations.SuppressMatchType matchType)
-
-
Method Details
-
match
Description copied from interface:Matcher
Determine whether or not the given BugInstance has the feature this Matcher tests for. -
isUselessSuppressionReportable
public boolean isUselessSuppressionReportable()- Returns:
- true if useless suppressions should be reported.
-
buildUselessSuppressionBugInstance
-
writeXML
- Specified by:
writeXML
in interfaceMatcher
- Throws:
IOException
-