Fixed typo in geoshape exception

Invaild -> Invalid
This commit is contained in:
Clinton Gormley 2015-01-05 13:27:54 +01:00
parent 75cc7077c7
commit 0d9fad79e0
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ public abstract class BasePolygonBuilder<E extends BasePolygonBuilder<E>> extend
final int pos; final int pos;
if (intersections == 0 || if (intersections == 0 ||
(pos = Arrays.binarySearch(edges, 0, intersections, current, INTERSECTION_ORDER)) >= 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 index = -(pos+2);
final int component = -edges[index].component - numHoles - 1; final int component = -edges[index].component - numHoles - 1;