From 2edf5adedc1337aa059ca052115d5775cbd46701 Mon Sep 17 00:00:00 2001 From: Karl Wright Date: Tue, 11 Dec 2018 13:48:34 -0500 Subject: [PATCH] LUCENE-8587: Fix the equals method of GeoComplexPolygon --- .../org/apache/lucene/spatial3d/geom/GeoComplexPolygon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }