Package edu.umd.cs.findbugs
Class FieldWarningSuppressor
java.lang.Object
edu.umd.cs.findbugs.WarningSuppressor
edu.umd.cs.findbugs.ClassWarningSuppressor
edu.umd.cs.findbugs.FieldWarningSuppressor
- All Implemented Interfaces:
Matcher
-
Field Summary
FieldsFields inherited from class edu.umd.cs.findbugs.ClassWarningSuppressor
clazz
Fields inherited from class edu.umd.cs.findbugs.WarningSuppressor
bugPattern, DEBUG, matchType, PRIORITY, USELESS_SUPPRESSION_ABB
-
Constructor Summary
ConstructorsConstructorDescriptionFieldWarningSuppressor
(String bugPattern, SuppressMatchType matchType, ClassAnnotation clazz, FieldAnnotation field) -
Method Summary
Modifier and TypeMethodDescriptionboolean
match
(BugInstance bugInstance) Determine whether or not the given BugInstance has the feature this Matcher tests for.toString()
Methods inherited from class edu.umd.cs.findbugs.ClassWarningSuppressor
getClassAnnotation
Methods inherited from class edu.umd.cs.findbugs.WarningSuppressor
isUselessSuppressionReportable, writeXML
-
Field Details
-
BUG_TYPE
- See Also:
-
field
FieldAnnotation field
-
-
Constructor Details
-
FieldWarningSuppressor
public FieldWarningSuppressor(String bugPattern, SuppressMatchType matchType, ClassAnnotation clazz, FieldAnnotation field)
-
-
Method Details
-
toString
-
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 classClassWarningSuppressor
- Parameters:
bugInstance
- the BugInstance- Returns:
- true if the BugInstance matches, false if not
-
buildUselessSuppressionBugInstance
- Overrides:
buildUselessSuppressionBugInstance
in classClassWarningSuppressor
-