Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr 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.java
index 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 GeoBaseCompositeMembershipShape
super(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);
+ }
+
@Override
public boolean equals(Object o) {
if (!(o instanceof GeoCompositeMembershipShape))