< prev index next >

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

Print this page
rev 3356 : [mq]: 8140281-deprecation-optional.get

@@ -202,11 +202,11 @@
                         Optional<Archive> source = archives.stream()
                                 .filter(a -> a.reader().entries().contains(cn))
                                 .findFirst();
                         trace("%s compile time view %s%n", name, source.map(Archive::getName).orElse(" not found"));
                         if (source.isPresent()) {
-                            executor.runTask(source.get(), deque);
+                            executor.runTask(source.getWhenPresent(), deque);
                         }
                     }
                     ClassFile cf = null;
                     for (Archive archive : archives) {
                         cf = archive.reader().getClassFile(name);
< prev index next >