Class CheckRelaxingNullnessAnnotation

  • All Implemented Interfaces:
    Detector2, Priorities

    public class CheckRelaxingNullnessAnnotation
    extends ClassNodeDetector
    Checks that overriding methods do not relax 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.
    Author:
    alienisty (Alessandro Nistico), Andrey Loskutov
    • Field Summary

      • Fields inherited from class org.objectweb.asm.tree.ClassNode

        access, attrs, fields, innerClasses, interfaces, invisibleAnnotations, invisibleTypeAnnotations, methods, module, name, nestHostClass, nestMembers, outerClass, outerMethod, outerMethodDesc, permittedSubclasses, recordComponents, signature, sourceDebug, sourceFile, superName, version, visibleAnnotations, visibleTypeAnnotations
      • Fields inherited from class org.objectweb.asm.ClassVisitor

        api, cv
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      • Methods inherited from class org.objectweb.asm.tree.ClassNode

        accept, check, visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitModule, visitNestHost, visitNestMember, visitOuterClass, visitPermittedSubclass, visitRecordComponent, visitSource, visitTypeAnnotation
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CheckRelaxingNullnessAnnotation

        public CheckRelaxingNullnessAnnotation​(BugReporter bugReporter)
    • Method Detail

      • visitMethod

        public org.objectweb.asm.MethodVisitor visitMethod​(int methodAccess,
                                                           java.lang.String methodName,
                                                           java.lang.String desc,
                                                           java.lang.String methodSignature,
                                                           java.lang.String[] exceptions)
        Overrides:
        visitMethod in class org.objectweb.asm.tree.ClassNode