Package edu.umd.cs.findbugs
Class WarningSuppressor
- java.lang.Object
-
- edu.umd.cs.findbugs.WarningSuppressor
-
- All Implemented Interfaces:
Matcher
- Direct Known Subclasses:
ClassWarningSuppressor
,PackageWarningSuppressor
public abstract class WarningSuppressor extends java.lang.Object implements Matcher
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
bugPattern
(package private) static boolean
DEBUG
protected SuppressMatchType
matchType
protected static int
PRIORITY
protected static java.lang.String
USELESS_SUPPRESSION_ABB
-
Constructor Summary
Constructors Modifier Constructor Description protected
WarningSuppressor(java.lang.String bugPattern, SuppressMatchType matchType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract BugInstance
buildUselessSuppressionBugInstance(UselessSuppressionDetector detector)
boolean
isUselessSuppressionReportable()
boolean
match(BugInstance bugInstance)
Determine whether or not the given BugInstance has the feature this Matcher tests for.void
writeXML(XMLOutput xmlOutput, boolean disabled)
-
-
-
Field Detail
-
USELESS_SUPPRESSION_ABB
protected static final java.lang.String USELESS_SUPPRESSION_ABB
- See Also:
- Constant Field Values
-
PRIORITY
protected static final int PRIORITY
- See Also:
- Constant Field Values
-
DEBUG
static final boolean DEBUG
-
bugPattern
protected final java.lang.String bugPattern
-
matchType
protected final SuppressMatchType matchType
-
-
Constructor Detail
-
WarningSuppressor
protected WarningSuppressor(java.lang.String bugPattern, SuppressMatchType matchType)
-
-
Method Detail
-
match
public boolean match(BugInstance bugInstance)
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
public abstract BugInstance buildUselessSuppressionBugInstance(UselessSuppressionDetector detector)
-
-