edu.umd.cs.findbugs.detect

Class FindOpenStream

public final class FindOpenStream extends ResourceTrackingDetector<Stream,StreamResourceTracker> implements StatelessDetector

A Detector to look for streams that are opened in a method, do not escape the method, and are not closed on all paths out of the method. Note that "stream" is a bit misleading, since we also use the detector to look for database resources that aren't closed.

Author: David Hovemeyer

Constructor Summary
FindOpenStream(BugReporter bugReporter)
Method Summary
static booleanisMainMethod(Method method)
static voidmain(String[] argv)

Constructor Detail

FindOpenStream

public FindOpenStream(BugReporter bugReporter)

Method Detail

isMainMethod

public static boolean isMainMethod(Method method)

main

public static void main(String[] argv)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.