LUCENE-5395: use Locale.ROOT

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1561250 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Wayne Smiley 2014-01-25 03:48:13 +00:00
parent 006dd1874f
commit c6e416cd00
1 changed files with 2 additions and 1 deletions

View File

@ -56,6 +56,7 @@ import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Locale;
import java.util.Map; import java.util.Map;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutionException;
@ -92,7 +93,7 @@ public abstract class AbstractSpatialFieldType<T extends SpatialStrategy> extend
//replace legacy rect format with ENVELOPE //replace legacy rect format with ENVELOPE
String wbStr = args.get("worldBounds"); String wbStr = args.get("worldBounds");
if (wbStr != null && !wbStr.toUpperCase().startsWith("ENVELOPE")) { if (wbStr != null && !wbStr.toUpperCase(Locale.ROOT).startsWith("ENVELOPE")) {
log.warn("Using old worldBounds format? Should use ENVELOPE(xMin, xMax, yMax, yMin)."); log.warn("Using old worldBounds format? Should use ENVELOPE(xMin, xMax, yMax, yMin).");
String[] parts = wbStr.split(" ");//"xMin yMin xMax yMax" String[] parts = wbStr.split(" ");//"xMin yMin xMax yMax"
if (parts.length == 4) { if (parts.length == 4) {