mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8311943: Cleanup usages of toLowerCase() and toUpperCase() in java.base
Reviewed-by: naoto
This commit is contained in:
parent
13f6450e2e
commit
b32d6411c4
11 changed files with 44 additions and 38 deletions
|
@ -34,6 +34,7 @@ import java.net.UnknownHostException;
|
|||
import java.net.URL;
|
||||
import java.security.GeneralSecurityException;
|
||||
import java.util.Base64;
|
||||
import java.util.Locale;
|
||||
import java.util.Objects;
|
||||
import java.util.Properties;
|
||||
|
||||
|
@ -149,7 +150,7 @@ public class NTLMAuthentication extends AuthenticationInfo {
|
|||
username = s;
|
||||
ntdomain = defaultDomain;
|
||||
} else {
|
||||
ntdomain = s.substring (0, i).toUpperCase();
|
||||
ntdomain = s.substring (0, i).toUpperCase(Locale.ROOT);
|
||||
username = s.substring (i+1);
|
||||
}
|
||||
password = pw.getPassword();
|
||||
|
|
|
@ -288,7 +288,7 @@ abstract class UnixFileStore
|
|||
if (value != null) {
|
||||
String[] values = value.split("\\s");
|
||||
for (String s: values) {
|
||||
s = s.trim().toLowerCase();
|
||||
s = s.trim().toLowerCase(Locale.ROOT);
|
||||
if (s.equals(feature)) {
|
||||
return FeatureStatus.PRESENT;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue