Apache Solr open-source search software
LUCENE-8587: Fix the equals method of GeoComplexPolygon
Karl Wright2edf5adedc13
diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.javaindex 41e2529bb2e..4b9ce1093dc 100644--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.java+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoComplexPolygon.java@@ -1777,7 +1777,7 @@ class GeoComplexPolygon extends GeoBasePolygon {return false;final GeoComplexPolygon other = (GeoComplexPolygon) o;return super.equals(other) && testPoint1InSet == other.testPoint1InSet- && testPoint1.equals(testPoint1)+ && testPoint1.equals(other.testPoint1)&& pointsList.equals(other.pointsList);}