Package edu.umd.cs.findbugs.detect
Class UselessSuppressionDetector
- java.lang.Object
-
- edu.umd.cs.findbugs.detect.UselessSuppressionDetector
-
- All Implemented Interfaces:
Detector2
,Priorities
public class UselessSuppressionDetector extends java.lang.Object implements Detector2
An empty detector reporting:- US_USELESS_SUPPRESSION_ON_CLASS
- US_USELESS_SUPPRESSION_ON_FIELD
- US_USELESS_SUPPRESSION_ON_METHOD
- US_USELESS_SUPPRESSION_ON_METHOD_PARAMETER
- US_USELESS_SUPPRESSION_ON_PACKAGE
NoteSuppressedWarnings
which is aNonReportingDetector
-
-
Field Summary
-
Fields inherited from interface edu.umd.cs.findbugs.Priorities
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description UselessSuppressionDetector()
UselessSuppressionDetector(BugReporter reporter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finishPass()
This method is called at the end of the analysis pass.void
visitClass(ClassDescriptor classDescriptor)
Visit a class.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.umd.cs.findbugs.Detector2
getDetectorClassName
-
-
-
-
Constructor Detail
-
UselessSuppressionDetector
public UselessSuppressionDetector()
-
UselessSuppressionDetector
public UselessSuppressionDetector(BugReporter reporter)
-
-
Method Detail
-
visitClass
public void visitClass(ClassDescriptor classDescriptor) throws CheckedAnalysisException
Description copied from interface:Detector2
Visit a class.- Specified by:
visitClass
in interfaceDetector2
- Parameters:
classDescriptor
- descriptor naming the class to visit- Throws:
CheckedAnalysisException
- if an exception occurs during analysis
-
finishPass
public void finishPass()
Description copied from interface:Detector2
This method is called at the end of the analysis pass.- Specified by:
finishPass
in interfaceDetector2
-
-