mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8193256: Configuration and ModuleLayer findModule cleanup
Reviewed-by: redestad, alanb
This commit is contained in:
parent
a87551990a
commit
93aa3ae4d7
2 changed files with 4 additions and 6 deletions
|
@ -543,9 +543,8 @@ public final class Configuration {
|
|||
if (!parents.isEmpty()) {
|
||||
return configurations()
|
||||
.skip(1) // skip this configuration
|
||||
.map(cf -> cf.nameToModule)
|
||||
.filter(map -> map.containsKey(name))
|
||||
.map(map -> map.get(name))
|
||||
.map(cf -> cf.nameToModule.get(name))
|
||||
.filter(Objects::nonNull)
|
||||
.findFirst();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue