< prev index next >

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

Print this page

        

@@ -204,11 +204,10 @@
                         archive.addClass(d.getOrigin());
                     }
                     parsedClasses.putIfAbsent(d.getOrigin(), archive);
                 }
             }
-
             return targets;
         });
         tasks.add(task);
         pool.submit(task);
         return Optional.of(task);

@@ -262,11 +261,10 @@
         try {
             Set<Location> targets = new HashSet<>();
             FutureTask<Set<Location>> task;
             while ((task = tasks.poll()) != null) {
                 // wait for completion
-                if (!task.isDone())
                     targets.addAll(task.get());
             }
             return targets;
         } catch (InterruptedException|ExecutionException e) {
             throw new Error(e);
< prev index next >