@Deprecated public class BCPMethodReturnCheck extends ByteCodePatternDetector
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY| Constructor and Description |
|---|
BCPMethodReturnCheck(BugReporter bugReporter)
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addMethodWhoseReturnMustBeChecked(java.lang.String className,
java.lang.String methodName,
java.lang.String methodSig,
int mode)
Deprecated.
|
static java.lang.String |
extractPackageName(java.lang.String className)
Deprecated.
|
protected BugReporter |
getBugReporter()
Deprecated.
|
ByteCodePattern |
getPattern()
Deprecated.
Get the ByteCodePattern for this detector.
|
boolean |
prescreen(org.apache.bcel.classfile.Method method,
ClassContext classContext)
Deprecated.
Prescreen a method.
|
void |
reportMatch(ClassContext classContext,
org.apache.bcel.classfile.Method method,
ByteCodePatternMatch match)
Deprecated.
Called to report an instance of the ByteCodePattern.
|
report, visitClassContextpublic BCPMethodReturnCheck(BugReporter bugReporter)
bugReporter - the BugReporter to report bug instances withpublic ByteCodePattern getPattern()
ByteCodePatternDetectorgetPattern in class ByteCodePatternDetectorpublic static void addMethodWhoseReturnMustBeChecked(java.lang.String className,
java.lang.String methodName,
java.lang.String methodSig,
int mode)
protected BugReporter getBugReporter()
getBugReporter in class ByteCodePatternDetectorpublic boolean prescreen(org.apache.bcel.classfile.Method method,
ClassContext classContext)
ByteCodePatternDetectorAs a datapoint, prescreening speeds up the BCPDoubleCheck detector by a factor of 5 with no loss of generality and only a dozen or so extra lines of code.
prescreen in class ByteCodePatternDetectormethod - the methodclassContext - the ClassContext for the methodpublic void reportMatch(ClassContext classContext, org.apache.bcel.classfile.Method method, ByteCodePatternMatch match)
ByteCodePatternDetectorreportMatch in class ByteCodePatternDetectorclassContext - the ClassContext for the analyzed classmethod - the method to instance appears inmatch - the ByteCodePatternMatch object representing the match
of the ByteCodePattern against actual instructions in the methodpublic static java.lang.String extractPackageName(java.lang.String className)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.