mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8221473: Configuration::reads can use Set.copyOf
Reviewed-by: alanb, forax
This commit is contained in:
parent
93e77e1767
commit
274396e105
1 changed files with 2 additions and 1 deletions
|
@ -575,7 +575,8 @@ public final class Configuration {
|
|||
}
|
||||
|
||||
Set<ResolvedModule> reads(ResolvedModule m) {
|
||||
return Collections.unmodifiableSet(graph.get(m));
|
||||
// The sets stored in the graph are already immutable sets
|
||||
return Set.copyOf(graph.get(m));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue