Class TrainUnconditionalDerefParams

  • All Implemented Interfaces:
    Detector, Priorities, TrainingDetector

    public class TrainUnconditionalDerefParams
    extends BuildUnconditionalParamDerefDatabase
    implements TrainingDetector
    Training pass to find method parameters which are unconditionally dereferenced. We do this by performing a backwards dataflow analysis which sees which params are dereferenced on all non-implicit-exception paths from the CFG entry.
    Author:
    David Hovemeyer
    • Constructor Detail

      • TrainUnconditionalDerefParams

        public TrainUnconditionalDerefParams​(BugReporter bugReporter)
    • Method Detail

      • report

        public void report()
        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