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.java index 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); }