SOLR-10076: 'String.format(Locale.ROOT,...' instead of (forbidden API) 'String.format(...)'

This commit is contained in:
Christine Poerschke 2017-03-14 10:46:25 +00:00
parent 91c3f78f8f
commit ddda27e4de
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,7 @@ public class SystemInfoHandler extends RequestHandlerBase
List<String> 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);
}