Package edu.umd.cs.findbugs
Class ParameterWarningSuppressor
- java.lang.Object
-
- edu.umd.cs.findbugs.WarningSuppressor
-
- edu.umd.cs.findbugs.ClassWarningSuppressor
-
- edu.umd.cs.findbugs.ParameterWarningSuppressor
-
- All Implemented Interfaces:
Matcher
public class ParameterWarningSuppressor extends ClassWarningSuppressor
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringBUG_TYPE(package private) MethodAnnotationmethod(package private) intregister-
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 ParameterWarningSuppressor(java.lang.String bugPattern, SuppressMatchType matchType, ClassAnnotation clazz, MethodAnnotation method, int register, boolean userGeneratedClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BugInstancebuildUselessSuppressionBugInstance(UselessSuppressionDetector detector)booleanmatch(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, isUselessSuppressionReportable
-
Methods inherited from class edu.umd.cs.findbugs.WarningSuppressor
addAlternateSuppressors, adjustBugPatternForMessage, getAlternateSuppressors, writeXML
-
-
-
-
Field Detail
-
BUG_TYPE
private static final java.lang.String BUG_TYPE
- See Also:
- Constant Field Values
-
method
final MethodAnnotation method
-
register
final int register
-
-
Constructor Detail
-
ParameterWarningSuppressor
public ParameterWarningSuppressor(java.lang.String bugPattern, SuppressMatchType matchType, ClassAnnotation clazz, MethodAnnotation method, int register, boolean userGeneratedClass)
-
-
Method Detail
-
match
public boolean match(BugInstance bugInstance)
Description copied from interface:MatcherDetermine whether or not the given BugInstance has the feature this Matcher tests for.- Specified by:
matchin interfaceMatcher- Overrides:
matchin classClassWarningSuppressor- Parameters:
bugInstance- the BugInstance- Returns:
- true if the BugInstance matches, false if not
-
buildUselessSuppressionBugInstance
public BugInstance buildUselessSuppressionBugInstance(UselessSuppressionDetector detector)
- Overrides:
buildUselessSuppressionBugInstancein classClassWarningSuppressor
-
-