public class CheckRelaxingNullnessAnnotation extends ClassNodeDetector
Nonnull
(made
CheckForNull
) on return values or CheckForNull
(made
Nonnull
) on parameters.
The code accepts also old (deprecated) nullness annotations from
edu.umd.cs.findbugs.annotations
package.bugReporter
access, attrs, fields, innerClasses, interfaces, invisibleAnnotations, invisibleTypeAnnotations, methods, name, outerClass, outerMethod, outerMethodDesc, signature, sourceDebug, sourceFile, superName, version, visibleAnnotations, visibleTypeAnnotations
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY
Constructor and Description |
---|
CheckRelaxingNullnessAnnotation(BugReporter bugReporter) |
Modifier and Type | Method and Description |
---|---|
void |
visitClass(ClassDescriptor classDescriptor)
Visit a class.
|
org.objectweb.asm.MethodVisitor |
visitMethod(int methodAccess,
java.lang.String methodName,
java.lang.String desc,
java.lang.String methodSignature,
java.lang.String[] exceptions) |
finishPass, getDetectorClassName
public CheckRelaxingNullnessAnnotation(BugReporter bugReporter)
public void visitClass(ClassDescriptor classDescriptor) throws CheckedAnalysisException
Detector2
visitClass
in interface Detector2
visitClass
in class ClassNodeDetector
classDescriptor
- descriptor naming the class to visitCheckedAnalysisException
- if an exception occurs during analysispublic org.objectweb.asm.MethodVisitor visitMethod(int methodAccess, java.lang.String methodName, java.lang.String desc, java.lang.String methodSignature, java.lang.String[] exceptions)
visitMethod
in class org.objectweb.asm.tree.ClassNode
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.