Package edu.umd.cs.findbugs
Class ClassWarningSuppressor
java.lang.Object
edu.umd.cs.findbugs.WarningSuppressor
edu.umd.cs.findbugs.ClassWarningSuppressor
- All Implemented Interfaces:
Matcher
- Direct Known Subclasses:
FieldWarningSuppressor
,MethodWarningSuppressor
,ParameterWarningSuppressor
-
Field Summary
FieldsFields inherited from class edu.umd.cs.findbugs.WarningSuppressor
bugPattern, DEBUG, matchType, PRIORITY, USELESS_SUPPRESSION_ABB
-
Constructor Summary
ConstructorsConstructorDescriptionClassWarningSuppressor
(String bugPattern, SuppressMatchType matchType, ClassAnnotation clazz) -
Method Summary
Modifier and TypeMethodDescriptionboolean
match
(BugInstance bugInstance) Determine whether or not the given BugInstance has the feature this Matcher tests for.Methods inherited from class edu.umd.cs.findbugs.WarningSuppressor
isUselessSuppressionReportable, writeXML
-
Field Details
-
BUG_TYPE
- See Also:
-
clazz
ClassAnnotation clazz
-
-
Constructor Details
-
ClassWarningSuppressor
public ClassWarningSuppressor(String bugPattern, SuppressMatchType matchType, ClassAnnotation clazz)
-
-
Method Details
-
getClassAnnotation
-
buildUselessSuppressionBugInstance
- Specified by:
buildUselessSuppressionBugInstance
in classWarningSuppressor
-
match
Description copied from interface:Matcher
Determine whether or not the given BugInstance has the feature this Matcher tests for.- Specified by:
match
in interfaceMatcher
- Overrides:
match
in classWarningSuppressor
- Parameters:
bugInstance
- the BugInstance- Returns:
- true if the BugInstance matches, false if not
-