mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8193454: ModuleDescriptor.{Requires,Exports,Open} toString should use toLowerCase(Local.ROOT)
Reviewed-by: alanb
This commit is contained in:
parent
3f0f9ef30c
commit
1ae8f54835
1 changed files with 3 additions and 1 deletions
|
@ -39,6 +39,7 @@ import java.util.EnumSet;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
@ -2603,7 +2604,8 @@ public class ModuleDescriptor
|
||||||
* Returns a string containing the given set of modifiers and label.
|
* Returns a string containing the given set of modifiers and label.
|
||||||
*/
|
*/
|
||||||
private static <M> String toString(Set<M> mods, String what) {
|
private static <M> String toString(Set<M> mods, String what) {
|
||||||
return (Stream.concat(mods.stream().map(e -> e.toString().toLowerCase()),
|
return (Stream.concat(mods.stream().map(e -> e.toString()
|
||||||
|
.toLowerCase(Locale.ROOT)),
|
||||||
Stream.of(what)))
|
Stream.of(what)))
|
||||||
.collect(Collectors.joining(" "));
|
.collect(Collectors.joining(" "));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue