public class CheckExpectedWarnings extends 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(String bugCode,
Collection<BugInstance> warnings,
boolean expectWarnings,
int priority,
Integer rank,
Integer num,
Object methodDescriptor,
int minPriority,
ClassDescriptor cd) |
void |
finishPass()
This method is called at the end of the analysis pass.
|
String |
getDetectorClassName()
Get the name of the detector class.
|
BugInstance |
makeWarning(String bugPattern,
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 String bugCode, Collection<BugInstance> warnings, boolean expectWarnings, int priority, Integer rank, Integer num, Object methodDescriptor, int minPriority, ClassDescriptor cd)
public BugInstance makeWarning(String bugPattern, Object descriptor, int priority, ClassDescriptor cd)
public void finishPass()
Detector2finishPass in interface Detector2public String getDetectorClassName()
Detector2getDetectorClassName in interface Detector2Copyright © 2003–2015. All rights reserved.