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
|
@ -1315,7 +1315,7 @@ public final class LauncherHelper {
|
|||
}
|
||||
|
||||
private static <T> Stream<String> toStringStream(Set<T> s) {
|
||||
return s.stream().map(e -> e.toString().toLowerCase());
|
||||
return s.stream().map(e -> e.toString().toLowerCase(Locale.ROOT));
|
||||
}
|
||||
|
||||
private static boolean isJrt(ModuleReference mref) {
|
||||
|
|
|
@ -377,7 +377,7 @@ public class DefaultProxySelector extends ProxySelector {
|
|||
if (disjunct.isEmpty())
|
||||
continue;
|
||||
disjunctionEmpty = false;
|
||||
String regex = disjunctToRegex(disjunct.toLowerCase());
|
||||
String regex = disjunctToRegex(disjunct.toLowerCase(Locale.ROOT));
|
||||
joiner.add(regex);
|
||||
}
|
||||
return disjunctionEmpty ? null : Pattern.compile(joiner.toString());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue