mirror of https://github.com/apache/lucene.git
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:
parent
006dd1874f
commit
c6e416cd00
|
@ -56,6 +56,7 @@ import java.util.ArrayList;
|
|||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
|
@ -92,7 +93,7 @@ public abstract class AbstractSpatialFieldType<T extends SpatialStrategy> extend
|
|||
|
||||
//replace legacy rect format with ENVELOPE
|
||||
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).");
|
||||
String[] parts = wbStr.split(" ");//"xMin yMin xMax yMax"
|
||||
if (parts.length == 4) {
|
||||
|
|
Loading…
Reference in New Issue