Apache Lucene open-source search software
Fix test failure on TestPoint#testEqualsAndHashCode (#13433)
Zhang Chaoa6f920d98923
diff --git a/lucene/core/src/test/org/apache/lucene/geo/TestPoint.java b/lucene/core/src/test/org/apache/lucene/geo/TestPoint.javaindex 31f2da4929f..0301bf18718 100644--- a/lucene/core/src/test/org/apache/lucene/geo/TestPoint.java+++ b/lucene/core/src/test/org/apache/lucene/geo/TestPoint.java@@ -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());