--- old/src/java.base/share/classes/java/lang/module/ModuleFinder.java 2016-09-15 14:53:51.043859141 +0000 +++ new/src/java.base/share/classes/java/lang/module/ModuleFinder.java 2016-09-15 14:53:50.846891520 +0000 @@ -33,7 +33,6 @@ import java.security.AccessController; import java.security.Permission; import java.security.PrivilegedAction; -import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; @@ -333,7 +332,7 @@ * *

When locating modules then any exceptions or errors thrown by the * {@code find} or {@code findAll} methods of the underlying module finders - * will be propogated to the caller of the resulting module finder's + * will be propagated to the caller of the resulting module finder's * {@code find} or {@code findAll} methods.

* * @param finders @@ -342,8 +341,7 @@ * @return A {@code ModuleFinder} that composes a sequence of module finders */ static ModuleFinder compose(ModuleFinder... finders) { - final List finderList = Arrays.asList(finders); - finderList.forEach(Objects::requireNonNull); + final List finderList = List.of(finders); return new ModuleFinder() { private final Map nameToModule = new HashMap<>();