Class WarningSuppressor
java.lang.Object
edu.umd.cs.findbugs.WarningSuppressor
- All Implemented Interfaces:
Matcher
- Direct Known Subclasses:
ClassWarningSuppressor, PackageWarningSuppressor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Set<WarningSuppressor> protected final String(package private) static final booleanprotected final SuppressMatchTypeprotected static final intprotected static final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWarningSuppressor(String bugPattern, SuppressMatchType matchType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlternateSuppressors(Collection<WarningSuppressor> additionalSuppressors) protected Stringabstract BugInstancebooleanbooleanmatch(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:
-
DEBUG
static final boolean DEBUG -
bugPattern
-
matchType
-
alternateSuppressors
-
-
Constructor Details
-
WarningSuppressor
-
-
Method Details
-
match
Description copied from interface:MatcherDetermine 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:
writeXMLin interfaceMatcher- Throws:
IOException
-
addAlternateSuppressors
-
getAlternateSuppressors
- Returns:
- The alternate suppressors that might have been generated from a single
SuppressWarningsannotation. SeeNoteSuppressedWarnings
-
adjustBugPatternForMessage
-