jdk/test/tools/jmod/hashes/HashesTest.java
changeset 43712 5dfd0950317c
parent 43109 fe275140c3f1
child 45191 ba48b1679390
--- a/jdk/test/tools/jmod/hashes/HashesTest.java	Thu Feb 09 17:21:47 2017 +0000
+++ b/jdk/test/tools/jmod/hashes/HashesTest.java	Fri Feb 10 09:04:39 2017 +0000
@@ -312,9 +312,7 @@
         assertTrue(ht.hashes("m2") == null);
 
         // should not override any JDK packaged modules
-        ModuleFinder finder = new ModulePath(Runtime.version(),
-                                             true,
-                                             mpath);
+        ModuleFinder finder = ModulePath.of(Runtime.version(), true, mpath);
         assertTrue(ht.hashes(finder,"jdk.compiler") == null);
         assertTrue(ht.hashes(finder,"jdk.attach") == null);
     }
@@ -325,9 +323,7 @@
     }
 
     private ModuleHashes hashes(String name) {
-        ModuleFinder finder = new ModulePath(Runtime.version(),
-                                             true,
-                                             lib);
+        ModuleFinder finder = ModulePath.of(Runtime.version(), true, lib);
         return hashes(finder, name);
     }