mirror of https://github.com/apache/lucene.git
Forbidden APIs: add missing root locale.
This commit is contained in:
parent
6f0842eaa5
commit
0f61aa9516
|
@ -33,6 +33,7 @@ import java.util.Enumeration;
|
|||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Locale;
|
||||
import java.util.Properties;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
@ -395,13 +396,13 @@ public final class HttpServer2 implements FilterContainer {
|
|||
SSLFactory.SSL_SERVER_NEED_CLIENT_AUTH_DEFAULT);
|
||||
keyStore = sslConf.getTrimmed(SSLFactory.SSL_SERVER_KEYSTORE_LOCATION);
|
||||
if (keyStore == null || keyStore.isEmpty()) {
|
||||
throw new IOException(String.format("Property %s not specified",
|
||||
throw new IOException(String.format(Locale.ROOT, "Property %s not specified",
|
||||
SSLFactory.SSL_SERVER_KEYSTORE_LOCATION));
|
||||
}
|
||||
keyStorePassword = getPasswordString(sslConf,
|
||||
SSLFactory.SSL_SERVER_KEYSTORE_PASSWORD);
|
||||
if (keyStorePassword == null) {
|
||||
throw new IOException(String.format("Property %s not specified",
|
||||
throw new IOException(String.format(Locale.ROOT, "Property %s not specified",
|
||||
SSLFactory.SSL_SERVER_KEYSTORE_PASSWORD));
|
||||
}
|
||||
keyStoreType = sslConf.get(SSLFactory.SSL_SERVER_KEYSTORE_TYPE,
|
||||
|
|
Loading…
Reference in New Issue