edu.umd.cs.findbugs.detect

Class AnyMethodReturnValueStreamFactory

public class AnyMethodReturnValueStreamFactory extends Object implements StreamFactory

Factory for stream objects of a particular base class type returned by any method. This factory helps us keep track of streams returned by methods; we don't want to report them, but we do want to keep track of whether or not they are closed, to avoid reporting unclosed streams in the same equivalence class.
Constructor Summary
AnyMethodReturnValueStreamFactory(String streamBase)
Method Summary
StreamcreateStream(Location location, ObjectType type, ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback)
AnyMethodReturnValueStreamFactorysetBugType(String bugType)

Constructor Detail

AnyMethodReturnValueStreamFactory

public AnyMethodReturnValueStreamFactory(String streamBase)

Method Detail

createStream

public Stream createStream(Location location, ObjectType type, ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback)

setBugType

public AnyMethodReturnValueStreamFactory setBugType(String bugType)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.