mirror of https://github.com/apache/lucene.git
SOLR-10076: 'String.format(Locale.ROOT,...' instead of (forbidden API) 'String.format(...)'
This commit is contained in:
parent
91c3f78f8f
commit
ddda27e4de
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue