From 8fc61e56288b6058a007ea651b0e2897039726da Mon Sep 17 00:00:00 2001 From: Karl Wright Date: Tue, 29 Aug 2017 05:50:45 -0400 Subject: [PATCH] LUCENE-7936: Missed a constructor for deserialization support. --- .../spatial3d/geom/GeoCompositeMembershipShape.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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))