Apache Lucene open-source search software
LUCENE-7936: Missed a constructor for deserialization support.
Karl Wright8fc61e56288b
diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoCompositeMembershipShape.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoCompositeMembershipShape.javaindex 55ce75a5a90..f9d59e0693d 100755--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoCompositeMembershipShape.java+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoCompositeMembershipShape.java@@ -16,6 +16,9 @@*/package org.apache.lucene.spatial3d.geom;+import java.io.InputStream;+import java.io.IOException;+/*** GeoCompositeMembershipShape is a set of GeoMembershipShape's, treated as a unit.*@@ -30,6 +33,15 @@ public class GeoCompositeMembershipShape extends GeoBaseCompositeMembershipShapesuper(planetModel);}+ /**+ * Constructor for deserialization.+ * @param planetModel is the planet model.+ * @param inputStream is the input stream.+ */+ public GeoCompositeMembershipShape(final PlanetModel planetModel, final InputStream inputStream) throws IOException {+ super(planetModel, inputStream, GeoMembershipShape.class);+ }+@Overridepublic boolean equals(Object o) {if (!(o instanceof GeoCompositeMembershipShape))