Skip to content

Commit

Permalink
Fix test failure on TestPoint#testEqualsAndHashCode (#13433)
Browse files Browse the repository at this point in the history
  • Loading branch information
easyice committed Jun 3, 2024
1 parent 84ff736 commit d965981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lucene/core/src/test/org/apache/lucene/geo/TestPoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void testEqualsAndHashCode() {
if (Double.compare(point.getLat(), otherPoint.getLat()) != 0
|| Double.compare(point.getLon(), otherPoint.getLon()) != 0) {
assertNotEquals(point, otherPoint);
assertNotEquals(point.hashCode(), otherPoint.hashCode());
// it is possible to have hashcode collisions
} else {
assertEquals(point, otherPoint);
assertEquals(point.hashCode(), otherPoint.hashCode());
Expand Down

0 comments on commit d965981

Please sign in to comment.