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
public class FieldWarningSuppressor extends ClassWarningSuppressor
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
BUG_TYPE
(package private) FieldAnnotation
field
-
Fields 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
Constructors Constructor Description FieldWarningSuppressor(java.lang.String bugPattern, SuppressMatchType matchType, ClassAnnotation clazz, FieldAnnotation field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BugInstance
buildUselessSuppressionBugInstance(UselessSuppressionDetector detector)
boolean
match(BugInstance bugInstance)
Determine whether or not the given BugInstance has the feature this Matcher tests for.java.lang.String
toString()
-
Methods inherited from class edu.umd.cs.findbugs.ClassWarningSuppressor
getClassAnnotation
-
Methods inherited from class edu.umd.cs.findbugs.WarningSuppressor
isUselessSuppressionReportable, writeXML
-
-
-
-
Field Detail
-
BUG_TYPE
private static final java.lang.String BUG_TYPE
- See Also:
- Constant Field Values
-
field
FieldAnnotation field
-
-
Constructor Detail
-
FieldWarningSuppressor
public FieldWarningSuppressor(java.lang.String bugPattern, SuppressMatchType matchType, ClassAnnotation clazz, FieldAnnotation field)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
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.- Specified by:
match
in interfaceMatcher
- Overrides:
match
in classClassWarningSuppressor
- Parameters:
bugInstance
- the BugInstance- Returns:
- true if the BugInstance matches, false if not
-
buildUselessSuppressionBugInstance
public BugInstance buildUselessSuppressionBugInstance(UselessSuppressionDetector detector)
- Overrides:
buildUselessSuppressionBugInstance
in classClassWarningSuppressor
-
-