Class BuildObligationPolicyDatabase

  • All Implemented Interfaces:
    Detector2, FirstPassDetector, NonReportingDetector, Priorities

    public class BuildObligationPolicyDatabase
    extends java.lang.Object
    implements Detector2, NonReportingDetector
    Build the ObligationPolicyDatabase used by ObligationAnalysis. We preload the database with some known resources types needing to be released, and augment the database with additional entries discovered through scanning referenced classes for annotations.
    Author:
    David Hovemeyer
    • Field Detail

      • INFER_CLOSE_METHODS

        public static final boolean INFER_CLOSE_METHODS
    • Constructor Detail

      • BuildObligationPolicyDatabase

        public BuildObligationPolicyDatabase​(BugReporter bugReporter)
    • Method Detail

      • addObligations

        public void addObligations​(XMethod xmethod)
        Parameters:
        xmethod -
      • finishPass

        public void finishPass()
        Description copied from interface: Detector2
        This method is called at the end of the analysis pass.
        Specified by:
        finishPass in interface Detector2
      • getDetectorClassName

        public java.lang.String getDetectorClassName()
        Description copied from interface: Detector2
        Get the name of the detector class.
        Specified by:
        getDetectorClassName in interface Detector2
        Returns:
        the name of the detector class.