Fix String.format to use Locale.ROOT

This commit is contained in:
Simon Willnauer 2013-05-23 18:26:12 +02:00
parent ffdebe9bc3
commit 13c1145548
1 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,8 @@
package org.elasticsearch.indices;
import java.util.Locale;
import org.elasticsearch.ElasticSearchException;
import org.elasticsearch.rest.RestStatus;
@ -28,7 +30,7 @@ public class AliasMissingException extends ElasticSearchException {
private final String[] names;
public AliasMissingException(String... names) {
super(String.format("alias [%s] missing", toNamesString(names)));
super(String.format(Locale.ROOT, "alias [%s] missing", toNamesString(names)));
this.names = names;
}