mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-20 20:00:28 +00:00
8221473: Configuration::reads can use Set.copyOf
Reviewed-by: alanb, forax
This commit is contained in:
parent
93e77e1767
commit
274396e105
@ -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…
x
Reference in New Issue
Block a user