edu.umd.cs.findbugs
Class ResourceTrackingDetector<Resource,ResourceTrackerType>
public abstract
class
ResourceTrackingDetector<Resource,ResourceTrackerType extends ResourceTracker<Resource>>
extends Object
implements Detector
Abstract implementation of a Detector to find methods where a
particular kind of created resource is not cleaned up
or closed properly. Subclasses should override the
abstract methods to determine what kinds of resources
are tracked by the detector.
Author: David Hovemeyer
Method Summary |
void | analyzeMethod(ClassContext classContext, Method method, ResourceTrackerType resourceTracker, ResourceCollection<Resource> resourceCollection) |
abstract ResourceTrackerType | getResourceTracker(ClassContext classContext, Method method) |
abstract void | inspectResult(ClassContext classContext, MethodGen methodGen, CFG cfg, Dataflow<ResourceValueFrame,ResourceValueAnalysis<Resource>> dataflow, Resource resource) |
abstract boolean | prescreen(ClassContext classContext, Method method) |
void | report() |
void | visitClassContext(ClassContext classContext) |
public ResourceTrackingDetector(
BugReporter bugReporter)
public abstract boolean prescreen(
ClassContext classContext, Method method)
public void report()
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.