Package edu.umd.cs.findbugs.detect
Class BuildObligationPolicyDatabase
java.lang.Object
edu.umd.cs.findbugs.detect.BuildObligationPolicyDatabase
- All Implemented Interfaces:
Detector2,FirstPassDetector,NonReportingDetector,Priorities
public class BuildObligationPolicyDatabase
extends 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 Summary
FieldsFields inherited from interface edu.umd.cs.findbugs.Priorities
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddObligations(XMethod xmethod) voidThis method is called at the end of the analysis pass.voidloadDatabase(URL u) voidvisitClass(ClassDescriptor classDescriptor) Visit a class.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.umd.cs.findbugs.Detector2
getDetectorClassName
-
Field Details
-
INFER_CLOSE_METHODS
public static final boolean INFER_CLOSE_METHODS
-
-
Constructor Details
-
BuildObligationPolicyDatabase
-
-
Method Details
-
loadDatabase
-
visitClass
Description copied from interface:Detector2Visit a class.- Specified by:
visitClassin interfaceDetector2- Parameters:
classDescriptor- descriptor naming the class to visit- Throws:
CheckedAnalysisException- if an exception occurs during analysis
-
addObligations
- Parameters:
xmethod-
-
finishPass
public void finishPass()Description copied from interface:Detector2This method is called at the end of the analysis pass.- Specified by:
finishPassin interfaceDetector2
-