From 0d9fad79e09aa9c090300e0bb43bd44188c46b5f Mon Sep 17 00:00:00 2001 From: Clinton Gormley Date: Mon, 5 Jan 2015 13:27:54 +0100 Subject: [PATCH] Fixed typo in geoshape exception Invaild -> Invalid --- .../elasticsearch/common/geo/builders/BasePolygonBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/common/geo/builders/BasePolygonBuilder.java b/src/main/java/org/elasticsearch/common/geo/builders/BasePolygonBuilder.java index 625c503f1a5..2981145b90a 100644 --- a/src/main/java/org/elasticsearch/common/geo/builders/BasePolygonBuilder.java +++ b/src/main/java/org/elasticsearch/common/geo/builders/BasePolygonBuilder.java @@ -366,7 +366,7 @@ public abstract class BasePolygonBuilder> extend final int pos; if (intersections == 0 || (pos = Arrays.binarySearch(edges, 0, intersections, current, INTERSECTION_ORDER)) >= 0) { - throw new ElasticsearchParseException("Invaild shape: Hole is not within polygon"); + throw new ElasticsearchParseException("Invalid shape: Hole is not within polygon"); } final int index = -(pos+2); final int component = -edges[index].component - numHoles - 1;