Skip to content

Commit 588fe79

Browse files
committed
Use StringUtils.toRootLowerCase
1 parent 6f68b9d commit 588fe79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/org/apache/commons/cli/SolrCliTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
2121

2222
import java.util.Locale;
2323

24+
import org.apache.commons.lang3.StringUtils;
2425
import org.junit.jupiter.api.Test;
2526

2627
/**
@@ -141,7 +142,7 @@ private static String getDefaultSolrUrl() {
141142
final String scheme = "http";
142143
final String host = "localhost";
143144
final String port = "8983";
144-
return String.format(Locale.ROOT, "%s://%s:%s", scheme.toLowerCase(Locale.ROOT), host, port);
145+
return String.format(Locale.ROOT, "%s://%s:%s", StringUtils.toRootLowerCase(scheme), host, port);
145146
}
146147

147148
@Test

0 commit comments

Comments
 (0)