Class NoteNonNullAnnotations

All Implemented Interfaces:
Detector, FirstPassDetector, NonReportingDetector, Priorities, org.apache.bcel.classfile.Visitor

@Deprecated public class NoteNonNullAnnotations extends BuildNonNullAnnotationDatabase implements Detector, NonReportingDetector
Deprecated.
AnnotationDatabases are being phased out, since annotations are now stored directly in the XClass/XMethod/XField objects. Resolving nullness annotations will be handled through the JSR-305 type qualifier code.
Scan classes for @NonNull, @PossiblyNull and @CheckForNull annotations, and convey them to FindNullDeref.
  • Constructor Details

    • NoteNonNullAnnotations

      public NoteNonNullAnnotations(BugReporter bugReporter)
      Deprecated.
  • Method Details

    • visitClassContext

      public void visitClassContext(ClassContext classContext)
      Deprecated.
      Description copied from interface: Detector
      Visit the ClassContext for a class which should be analyzed for instances of bug patterns.
      Specified by:
      visitClassContext in interface Detector
      Parameters:
      classContext - the ClassContext
    • report

      public void report()
      Deprecated.
      Description copied from interface: Detector
      This method is called after all classes to be visited. It should be used by any detectors which accumulate information over all visited classes to generate results.
      Specified by:
      report in interface Detector