< prev index next >

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

Print this page

        

*** 135,155 **** } 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)) { // missing dependencies return null; } Map<String, Boolean> requires = new HashMap<>(); --- 135,151 ---- } finally { dependencyFinder.shutdown(); } } private Module toNormalModule(Module module, Set<Archive> requiresTransitive) throws IOException { // done analysis module.close(); ! if (analyzer.requires(module).anyMatch(Analyzer::notFound)) { // missing dependencies return null; } Map<String, Boolean> requires = new HashMap<>();
*** 180,192 **** .map(Module::descriptor); } void visitMissingDeps(Analyzer.Visitor visitor) { automaticModules().stream() ! .filter(m -> analyzer.requires(m).anyMatch(this::notFound)) .forEach(m -> { ! analyzer.visitDependences(m, visitor, Analyzer.Type.VERBOSE); }); } void writeModuleInfo(Path file, ModuleDescriptor md) { try { --- 176,188 ---- .map(Module::descriptor); } void visitMissingDeps(Analyzer.Visitor visitor) { automaticModules().stream() ! .filter(m -> analyzer.requires(m).anyMatch(Analyzer::notFound)) .forEach(m -> { ! analyzer.visitDependences(m, visitor, Analyzer.Type.VERBOSE, Analyzer::notFound); }); } void writeModuleInfo(Path file, ModuleDescriptor md) { try {
< prev index next >