Package edu.umd.cs.findbugs.detect
Class CheckExpectedWarnings
java.lang.Object
edu.umd.cs.findbugs.detect.CheckExpectedWarnings
- All Implemented Interfaces:
Detector2,FirstPassDetector,NonReportingDetector,Priorities
@Deprecated
public class CheckExpectedWarnings
extends Object
implements Detector2, NonReportingDetector
Deprecated.
Check uses of the ExpectWarning and NoWarning annotations. This is for
internal testing of FindBugs (against spotbugsTestCases).
- Author:
- David Hovemeyer
-
Field Summary
Fields inherited from interface edu.umd.cs.findbugs.Priorities
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAnnotation(String bugCode, Collection<BugInstance> warnings, boolean expectWarnings, int priority, Integer rank, Integer num, Object methodDescriptor, int minPriority, ClassDescriptor cd) Deprecated.voidDeprecated.This method is called at the end of the analysis pass.makeWarning(String bugPattern, Object descriptor, int priority, ClassDescriptor cd) Deprecated.voidvisitClass(ClassDescriptor classDescriptor) Deprecated.Visit a class.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.umd.cs.findbugs.Detector2
getDetectorClassName
-
Constructor Details
-
CheckExpectedWarnings
Deprecated.
-
-
Method Details
-
visitClass
Deprecated.Description copied from interface:Detector2Visit a class.- Specified by:
visitClassin interfaceDetector2- Parameters:
classDescriptor- descriptor naming the class to visit- Throws:
CheckedAnalysisException- if an exception occurs during analysis
-
checkAnnotation
public void checkAnnotation(@CheckForNull String bugCode, Collection<BugInstance> warnings, boolean expectWarnings, int priority, Integer rank, Integer num, Object methodDescriptor, int minPriority, ClassDescriptor cd) Deprecated. -
makeWarning
public BugInstance makeWarning(String bugPattern, Object descriptor, int priority, ClassDescriptor cd) Deprecated. -
finishPass
public void finishPass()Deprecated.Description copied from interface:Detector2This method is called at the end of the analysis pass.- Specified by:
finishPassin interfaceDetector2
-
edu.umd.cs.findbugs.test.matcher.BugInstanceMatchermatchers in test source directory