Skip to content

Commit 1be2b85

Browse files
committed
Fix HtsPath equals and hashCode.
1 parent fd2f330 commit 1be2b85

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/htsjdk/io/HtsPath.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -229,16 +229,13 @@ public boolean equals(Object o) {
229229

230230
HtsPath that = (HtsPath) o;
231231

232-
if (!getRawInputString().equals(that.getRawInputString())) return false;
233232
if (!getURI().equals(that.getURI())) return false;
234233
return true;
235234
}
236235

237236
@Override
238237
public int hashCode() {
239-
int result = getRawInputString().hashCode();
240-
result = 31 * result + getURI().hashCode();
241-
return result;
238+
return getURI().hashCode();
242239
}
243240

244241
// Called during HtsPath construction to construct and return a URI for the provided input string.

0 commit comments

Comments
 (0)