mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8209003: Consolidate use of empty collections in java.lang.module
Reviewed-by: alanb, mchung
This commit is contained in:
parent
3be8d256e9
commit
db4913ba5a
14 changed files with 76 additions and 122 deletions
|
@ -40,7 +40,6 @@ import java.net.URI;
|
|||
import java.net.URL;
|
||||
import java.security.AccessController;
|
||||
import java.security.PrivilegedAction;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
|
@ -1123,7 +1122,7 @@ public final class Module implements AnnotatedElement {
|
|||
Set<Module> reads = new HashSet<>();
|
||||
|
||||
// name -> source Module when in parent layer
|
||||
Map<String, Module> nameToSource = Collections.emptyMap();
|
||||
Map<String, Module> nameToSource = Map.of();
|
||||
|
||||
for (ResolvedModule other : resolvedModule.reads()) {
|
||||
Module m2 = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue