[ML] Don't use default locale.

Original commit: elastic/x-pack-elasticsearch@f1e5016008
This commit is contained in:
Martijn van Groningen 2017-03-21 13:28:11 +01:00
parent 4f5b3dfea3
commit dd91ac0cd3
1 changed files with 1 additions and 2 deletions

View File

@ -21,8 +21,7 @@ public final class DomainSplitFunction {
static { static {
Map<String, Object> paramsMap = new HashMap<>(); Map<String, Object> paramsMap = new HashMap<>();
ResourceBundle resource = ResourceBundle.getBundle("org/elasticsearch/xpack/ml/transforms/exact", Locale.ROOT);
ResourceBundle resource = ResourceBundle.getBundle("org/elasticsearch/xpack/ml/transforms/exact", Locale.getDefault());
Enumeration<String> keys = resource.getKeys(); Enumeration<String> keys = resource.getKeys();
Map<String, String> exact = new HashMap<>(2048); Map<String, String> exact = new HashMap<>(2048);
while (keys.hasMoreElements()) { while (keys.hasMoreElements()) {