--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/Locations.java Fri Dec 16 12:08:46 2016 +0100
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/Locations.java Fri Dec 16 15:27:34 2016 +0000
@@ -272,7 +272,7 @@
}
try (Stream<Path> s = Files.list(dir)) {
- s.filter(dirEntry -> isArchive(dirEntry))
+ s.filter(Locations.this::isArchive)
.forEach(dirEntry -> addFile(dirEntry, warn));
} catch (IOException ignore) {
}
@@ -946,7 +946,7 @@
if (searchPath == null)
return Collections.emptyList();
- return () -> new ModulePathIterator();
+ return ModulePathIterator::new;
}
@Override