diff --git a/core/src/main/java/org/elasticsearch/common/geo/parsers/CoordinateNode.java b/core/src/main/java/org/elasticsearch/common/geo/parsers/CoordinateNode.java index d766d75d5ec..eb632219637 100644 --- a/core/src/main/java/org/elasticsearch/common/geo/parsers/CoordinateNode.java +++ b/core/src/main/java/org/elasticsearch/common/geo/parsers/CoordinateNode.java @@ -41,7 +41,7 @@ public class CoordinateNode implements ToXContentObject { * @param coordinate * Coordinate for the Node */ - protected CoordinateNode(Coordinate coordinate) { + CoordinateNode(Coordinate coordinate) { this.coordinate = coordinate; this.children = null; } @@ -52,7 +52,7 @@ public class CoordinateNode implements ToXContentObject { * @param children * Children of the Node */ - protected CoordinateNode(List children) { + CoordinateNode(List children) { this.children = children; this.coordinate = null; } @@ -61,10 +61,6 @@ public class CoordinateNode implements ToXContentObject { return (coordinate == null && (children == null || children.isEmpty())); } - public boolean isMultiPoint() { - return children != null && children.size() > 1; - } - @Override public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { if (children == null) { diff --git a/core/src/test/java/org/elasticsearch/common/geo/BaseGeoParsingTestCase.java b/core/src/test/java/org/elasticsearch/common/geo/BaseGeoParsingTestCase.java index 4c2f58cf6c3..3297e956e60 100644 --- a/core/src/test/java/org/elasticsearch/common/geo/BaseGeoParsingTestCase.java +++ b/core/src/test/java/org/elasticsearch/common/geo/BaseGeoParsingTestCase.java @@ -25,9 +25,7 @@ import java.io.IOException; import static org.elasticsearch.common.geo.builders.ShapeBuilder.SPATIAL_CONTEXT; -/** - * Created by nknize on 9/22/17. - */ +/** Base class for all geo parsing tests */ abstract class BaseGeoParsingTestCase extends ESTestCase { protected static final GeometryFactory GEOMETRY_FACTORY = SPATIAL_CONTEXT.getGeometryFactory();