< prev index next >

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

Print this page




 587                                        options.showProfile,
 588                                        options.showModule,
 589                                        options.showLabel);
 590         } else {
 591             writer = new SimpleWriter(log,
 592                                       options.verbose,
 593                                       options.showProfile,
 594                                       options.showModule);
 595         }
 596 
 597         // analyze the dependencies
 598         DepsAnalyzer analyzer = new DepsAnalyzer(config,
 599                                         dependencyFilter(config),
 600                                         writer,
 601                                         options.verbose,
 602                                         options.apiOnly);
 603 
 604         boolean ok = analyzer.run(options.compileTimeView, options.depth);
 605 
 606         // print skipped entries, if any

 607         analyzer.archives()
 608             .forEach(archive -> archive.reader()
 609                 .skippedEntries().stream()
 610                 .forEach(name -> warning("warn.skipped.entry",
 611                                          name, archive.getPathName())));
 612 
 613         if (options.findJDKInternals && !options.nowarning) {
 614             Map<String, String> jdkInternals = new TreeMap<>();
 615             Set<String> deps = analyzer.dependences();
 616             // find the ones with replacement
 617             deps.forEach(cn -> replacementFor(cn).ifPresent(
 618                 repl -> jdkInternals.put(cn, repl))
 619             );
 620 
 621             if (!deps.isEmpty()) {
 622                 log.println();
 623                 warning("warn.replace.useJDKInternals", getMessage("jdeps.wiki.url"));
 624             }
 625 
 626             if (!jdkInternals.isEmpty()) {
 627                 log.println();
 628                 log.format("%-40s %s%n", "JDK Internal API", "Suggested Replacement");
 629                 log.format("%-40s %s%n", "----------------", "---------------------");
 630                 jdkInternals.entrySet().stream()
 631                     .forEach(e -> {




 587                                        options.showProfile,
 588                                        options.showModule,
 589                                        options.showLabel);
 590         } else {
 591             writer = new SimpleWriter(log,
 592                                       options.verbose,
 593                                       options.showProfile,
 594                                       options.showModule);
 595         }
 596 
 597         // analyze the dependencies
 598         DepsAnalyzer analyzer = new DepsAnalyzer(config,
 599                                         dependencyFilter(config),
 600                                         writer,
 601                                         options.verbose,
 602                                         options.apiOnly);
 603 
 604         boolean ok = analyzer.run(options.compileTimeView, options.depth);
 605 
 606         // print skipped entries, if any
 607         if (!options.nowarning) {
 608             analyzer.archives()
 609                 .forEach(archive -> archive.reader()
 610                     .skippedEntries().stream()
 611                     .forEach(name -> warning("warn.skipped.entry", name)));
 612         }
 613 
 614         if (options.findJDKInternals && !options.nowarning) {
 615             Map<String, String> jdkInternals = new TreeMap<>();
 616             Set<String> deps = analyzer.dependences();
 617             // find the ones with replacement
 618             deps.forEach(cn -> replacementFor(cn).ifPresent(
 619                 repl -> jdkInternals.put(cn, repl))
 620             );
 621 
 622             if (!deps.isEmpty()) {
 623                 log.println();
 624                 warning("warn.replace.useJDKInternals", getMessage("jdeps.wiki.url"));
 625             }
 626 
 627             if (!jdkInternals.isEmpty()) {
 628                 log.println();
 629                 log.format("%-40s %s%n", "JDK Internal API", "Suggested Replacement");
 630                 log.format("%-40s %s%n", "----------------", "---------------------");
 631                 jdkInternals.entrySet().stream()
 632                     .forEach(e -> {


< prev index next >