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 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 Summary
Fields Modifier and Type Field Description static boolean
INFER_CLOSE_METHODS
-
Fields inherited from interface edu.umd.cs.findbugs.Priorities
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description BuildObligationPolicyDatabase(BugReporter bugReporter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addObligations(XMethod xmethod)
void
finishPass()
This method is called at the end of the analysis pass.java.lang.String
getDetectorClassName()
Get the name of the detector class.void
visitClass(ClassDescriptor classDescriptor)
Visit a class.
-
-
-
Constructor Detail
-
BuildObligationPolicyDatabase
public BuildObligationPolicyDatabase(BugReporter bugReporter)
-
-
Method Detail
-
visitClass
public void visitClass(ClassDescriptor classDescriptor) throws CheckedAnalysisException
Description copied from interface:Detector2
Visit a class.- Specified by:
visitClass
in interfaceDetector2
- Parameters:
classDescriptor
- descriptor naming the class to visit- Throws:
CheckedAnalysisException
- if an exception occurs during analysis
-
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 interfaceDetector2
-
getDetectorClassName
public java.lang.String getDetectorClassName()
Description copied from interface:Detector2
Get the name of the detector class.- Specified by:
getDetectorClassName
in interfaceDetector2
- Returns:
- the name of the detector class.
-
-