edu.umd.cs.findbugs.detect
Class StreamEscape
java.lang.Object
edu.umd.cs.findbugs.detect.StreamEscape
- All Implemented Interfaces:
- java.lang.Comparable<StreamEscape>
public class StreamEscape
- extends java.lang.Object
- implements java.lang.Comparable<StreamEscape>
A StreamEscape is an object representing the escape of a Stream
to a called method.
The "source" is the Stream which is escaping.
The "target" is the Location where the stream instance escapes.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
source
public final Stream source
target
public final Location target
StreamEscape
public StreamEscape(Stream source,
Location target)
- Constructor.
- Parameters:
source
- Location where stream is openedtarget
- Location where stream escapes by being
passed to a method
compareTo
public int compareTo(StreamEscape other)
- Specified by:
compareTo
in interface java.lang.Comparable<StreamEscape>
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.