Apache Solr open-source search software
LUCENE-7918: Fix incorrect equals method.
Karl Wright84d8385fb9fa
diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoBaseCompositeShape.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoBaseCompositeShape.javaindex 16a507c14a4..5fe8af154ee 100644--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoBaseCompositeShape.java+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoBaseCompositeShape.java@@ -108,7 +108,7 @@ public abstract class GeoBaseCompositeShape<T extends GeoShape> implements GeoSh@Overridepublic int hashCode() {- return super.hashCode() * 31 + shapes.hashCode();//TODO cache+ return shapes.hashCode();}@Override@@ -116,6 +116,6 @@ public abstract class GeoBaseCompositeShape<T extends GeoShape> implements GeoShif (!(o instanceof GeoBaseCompositeShape<?>))return false;GeoBaseCompositeShape<?> other = (GeoBaseCompositeShape<?>) o;- return super.equals(o) && shapes.equals(other.shapes);+ return shapes.equals(other.shapes);}}