< prev index next >
src/jdk.jdeps/share/classes/com/sun/tools/jdeps/DependencyFinder.java
Print this page
*** 204,214 ****
archive.addClass(d.getOrigin());
}
parsedClasses.putIfAbsent(d.getOrigin(), archive);
}
}
-
return targets;
});
tasks.add(task);
pool.submit(task);
return Optional.of(task);
--- 204,213 ----
*** 262,272 ****
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);
--- 261,270 ----
< prev index next >