From ddda27e4deab45b9a6bfec8d61319b00f88e27f6 Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Tue, 14 Mar 2017 10:46:25 +0000 Subject: [PATCH] SOLR-10076: 'String.format(Locale.ROOT,...' instead of (forbidden API) 'String.format(...)' --- .../java/org/apache/solr/handler/admin/SystemInfoHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/core/src/java/org/apache/solr/handler/admin/SystemInfoHandler.java b/solr/core/src/java/org/apache/solr/handler/admin/SystemInfoHandler.java index 94fb0553768..fc1679ff896 100644 --- a/solr/core/src/java/org/apache/solr/handler/admin/SystemInfoHandler.java +++ b/solr/core/src/java/org/apache/solr/handler/admin/SystemInfoHandler.java @@ -445,7 +445,7 @@ public class SystemInfoHandler extends RequestHandlerBase List list = new LinkedList<>(); for (String arg : mx.getInputArguments()) { if (arg.startsWith("-D") && arg.contains("=") && RedactionUtils.isSystemPropertySensitive(arg.substring(2, arg.indexOf("=")))) { - list.add(String.format("%s=%s", arg.substring(0, arg.indexOf("=")), REDACT_STRING)); + list.add(String.format(Locale.ROOT, "%s=%s", arg.substring(0, arg.indexOf("=")), REDACT_STRING)); } else { list.add(arg); }