langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/JavacState.java
changeset 42827 36468b5fa7f4
parent 36708 c524ead121da
equal deleted inserted replaced
42826:563b42fc70ba 42827:36468b5fa7f4
   485         for (Package pkg : new HashSet<>(prev.packages().values())) {
   485         for (Package pkg : new HashSet<>(prev.packages().values())) {
   486             // Find out what it depends upon...
   486             // Find out what it depends upon...
   487             Set<String> deps = pkg.typeDependencies()
   487             Set<String> deps = pkg.typeDependencies()
   488                                   .values()
   488                                   .values()
   489                                   .stream()
   489                                   .stream()
   490                                   .flatMap(s -> s.stream())
   490                                   .flatMap(Collection::stream)
   491                                   .collect(Collectors.toSet());
   491                                   .collect(Collectors.toSet());
   492             for (String dep : deps) {
   492             for (String dep : deps) {
   493                 String depPkg = ":" + dep.substring(0, dep.lastIndexOf('.'));
   493                 String depPkg = ":" + dep.substring(0, dep.lastIndexOf('.'));
   494                 if (depPkg.equals(pkg.name()))
   494                 if (depPkg.equals(pkg.name()))
   495                     continue;
   495                     continue;