Class TrainNonNullAnnotations

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

@Deprecated public class TrainNonNullAnnotations extends BuildNonNullAnnotationDatabase implements Detector, TrainingDetector
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.
Training detector to store NonNull, PossiblyNull and CheckForNull annotations to database files.
Author:
David Hovemeyer
  • Constructor Details

    • TrainNonNullAnnotations

      public TrainNonNullAnnotations(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