public class CheckExpectedWarnings extends java.lang.Object implements Detector2, NonReportingDetector
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY| Constructor and Description |
|---|
CheckExpectedWarnings(BugReporter bugReporter) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAnnotation(java.lang.String bugCode,
java.util.Collection<BugInstance> warnings,
boolean expectWarnings,
int priority,
java.lang.Integer rank,
java.lang.Integer num,
java.lang.Object methodDescriptor,
int minPriority,
ClassDescriptor cd) |
void |
finishPass()
This method is called at the end of the analysis pass.
|
java.lang.String |
getDetectorClassName()
Get the name of the detector class.
|
BugInstance |
makeWarning(java.lang.String bugPattern,
java.lang.Object descriptor,
int priority,
ClassDescriptor cd) |
void |
visitClass(ClassDescriptor classDescriptor)
Visit a class.
|
public CheckExpectedWarnings(BugReporter bugReporter)
public void visitClass(ClassDescriptor classDescriptor) throws CheckedAnalysisException
Detector2visitClass in interface Detector2classDescriptor - descriptor naming the class to visitCheckedAnalysisException - if an exception occurs during analysispublic void checkAnnotation(@CheckForNull
java.lang.String bugCode,
java.util.Collection<BugInstance> warnings,
boolean expectWarnings,
int priority,
java.lang.Integer rank,
java.lang.Integer num,
java.lang.Object methodDescriptor,
int minPriority,
ClassDescriptor cd)
public BugInstance makeWarning(java.lang.String bugPattern, java.lang.Object descriptor, int priority, ClassDescriptor cd)
public void finishPass()
Detector2finishPass in interface Detector2public java.lang.String getDetectorClassName()
Detector2getDetectorClassName in interface Detector2FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.