Package edu.umd.cs.findbugs
Class MethodWarningSuppressor
java.lang.Object
edu.umd.cs.findbugs.WarningSuppressor
edu.umd.cs.findbugs.ClassWarningSuppressor
edu.umd.cs.findbugs.MethodWarningSuppressor
- All Implemented Interfaces:
Matcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private final MethodAnnotation
private final boolean
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
ConstructorsConstructorDescriptionMethodWarningSuppressor
(String bugPattern, SuppressMatchType matchType, ClassAnnotation clazz, MethodAnnotation method, boolean syntheticMethod) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
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.ClassWarningSuppressor
getClassAnnotation
Methods inherited from class edu.umd.cs.findbugs.WarningSuppressor
writeXML
-
Field Details
-
BUG_TYPE
- See Also:
-
method
-
syntheticMethod
private final boolean syntheticMethod
-
-
Constructor Details
-
MethodWarningSuppressor
public MethodWarningSuppressor(String bugPattern, SuppressMatchType matchType, ClassAnnotation clazz, MethodAnnotation method, boolean syntheticMethod)
-
-
Method Details
-
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
-
isUselessSuppressionReportable
public boolean isUselessSuppressionReportable()- Overrides:
isUselessSuppressionReportable
in classWarningSuppressor
- Returns:
- true if useless suppressions should be reported.
-