@Override public int hashCode() { return getLocation().hashCode() + 3 * streamBase.hashCode() + 7 * getResourceClass().hashCode() + 11 * instanceParam; }
@Override public boolean equals(Object o) { if (!(o instanceof Stream)) { return false; } Stream other = (Stream) o; if (!getLocation().equals(other.getLocation())) { return false; } if (!streamBase.equals(other.streamBase)) { return false; } if (!getResourceClass().equals(other.getResourceClass())) { return false; } if (instanceParam != other.instanceParam) { return false; } return true; }
cmp = getLocation().compareTo(other.getLocation()); if (cmp != 0) { return cmp;
Location creationPoint = stream.getLocation(); if (handle == creationPoint.getHandle() && basicBlock == creationPoint.getBasicBlock()) {
.addClassAndMethod(methodGen, sourceFile).addTypeOfNamedClass(leakClass) .describe(TypeAnnotation.CLOSEIT_ROLE), SourceLineAnnotation.fromVisitedInstruction(classContext, methodGen, sourceFile, stream.getLocation().getHandle()));
@Override public int hashCode() { return getLocation().hashCode() + 3 * streamBase.hashCode() + 7 * getResourceClass().hashCode() + 11 * instanceParam; }
@Override public boolean equals(Object o) { if (!(o instanceof Stream)) { return false; } Stream other = (Stream) o; if (!getLocation().equals(other.getLocation())) { return false; } if (!streamBase.equals(other.streamBase)) { return false; } if (!getResourceClass().equals(other.getResourceClass())) { return false; } if (instanceParam != other.instanceParam) { return false; } return true; }
cmp = getLocation().compareTo(other.getLocation()); if (cmp != 0) { return cmp;
.addClassAndMethod(methodGen, sourceFile).addTypeOfNamedClass(leakClass) .describe(TypeAnnotation.CLOSEIT_ROLE), SourceLineAnnotation.fromVisitedInstruction(classContext, methodGen, sourceFile, stream.getLocation().getHandle()));
Location creationPoint = stream.getLocation(); if (handle == creationPoint.getHandle() && basicBlock == creationPoint.getBasicBlock()) {