From 0f61aa9516f94d72ca0eba19209a588fa9ac999c Mon Sep 17 00:00:00 2001 From: Dawid Weiss Date: Tue, 3 Dec 2019 13:07:23 +0100 Subject: [PATCH] Forbidden APIs: add missing root locale. --- solr/core/src/test/org/apache/hadoop/http/HttpServer2.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/solr/core/src/test/org/apache/hadoop/http/HttpServer2.java b/solr/core/src/test/org/apache/hadoop/http/HttpServer2.java index 5962bebe58d..757b211d159 100644 --- a/solr/core/src/test/org/apache/hadoop/http/HttpServer2.java +++ b/solr/core/src/test/org/apache/hadoop/http/HttpServer2.java @@ -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,