< prev index next >

src/jdk.jdeps/share/classes/com/sun/tools/jdeps/ModuleInfoBuilder.java

Print this page

        

@@ -135,21 +135,17 @@
         } finally {
             dependencyFinder.shutdown();
         }
     }
 
-    boolean notFound(Archive m) {
-        return m == NOT_FOUND || m == REMOVED_JDK_INTERNALS;
-    }
-
     private Module toNormalModule(Module module, Set<Archive> requiresTransitive)
         throws IOException
     {
         // done analysis
         module.close();
 
-        if (analyzer.requires(module).anyMatch(this::notFound)) {
+        if (analyzer.requires(module).anyMatch(Analyzer::notFound)) {
             // missing dependencies
             return null;
         }
 
         Map<String, Boolean> requires = new HashMap<>();

@@ -180,13 +176,13 @@
                     .map(Module::descriptor);
     }
 
     void visitMissingDeps(Analyzer.Visitor visitor) {
         automaticModules().stream()
-            .filter(m -> analyzer.requires(m).anyMatch(this::notFound))
+            .filter(m -> analyzer.requires(m).anyMatch(Analyzer::notFound))
             .forEach(m -> {
-                analyzer.visitDependences(m, visitor, Analyzer.Type.VERBOSE);
+                analyzer.visitDependences(m, visitor, Analyzer.Type.VERBOSE, Analyzer::notFound);
             });
     }
 
     void writeModuleInfo(Path file, ModuleDescriptor md) {
         try {
< prev index next >