Fix test failure on TestPoint#testEqualsAndHashCode (#13433)

This commit is contained in:
Zhang Chao 2024-06-03 10:43:01 +08:00 committed by GitHub
parent a540027bde
commit a6f920d989
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ public class TestPoint extends LuceneTestCase {
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());