edu.umd.cs.findbugs.detect

Class MethodReturnValueStreamFactory

public class MethodReturnValueStreamFactory extends Object implements StreamFactory

StreamFactory for streams that are created as the result of calling a method on an object.
Constructor Summary
MethodReturnValueStreamFactory(String baseClass, String methodName, String methodSig)
Constructor.
MethodReturnValueStreamFactory(String baseClass, String methodName, String methodSig, String bugType)
Constructor.
Method Summary
StreamcreateStream(Location location, ObjectType type, ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback)

Constructor Detail

MethodReturnValueStreamFactory

public MethodReturnValueStreamFactory(String baseClass, String methodName, String methodSig)
Constructor. The Streams created will be marked as uninteresting.

Parameters: baseClass base class through which the method will be called (we check instances of the base class and all subtypes) methodName name of the method called methodSig signature of the method called

MethodReturnValueStreamFactory

public MethodReturnValueStreamFactory(String baseClass, String methodName, String methodSig, String bugType)
Constructor. The Streams created will be marked as interesting.

Parameters: baseClass base class through which the method will be called (we check instances of the base class and all subtypes) methodName name of the method called methodSig signature of the method called bugType the bug type that should be reported if the stream is not closed on all paths out of the method

Method Detail

createStream

public Stream createStream(Location location, ObjectType type, ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.