langtools/src/share/classes/com/sun/tools/jdeps/ClassFileReader.java
changeset 22163 3651128c74eb
parent 21046 ebf16a1a6328
child 22449 1fd6d4bec7dd
equal deleted inserted replaced
22162:3b3e23e67329 22163:3651128c74eb
   187                 }
   187                 }
   188             };
   188             };
   189         }
   189         }
   190 
   190 
   191         private List<Path> walkTree(Path dir) throws IOException {
   191         private List<Path> walkTree(Path dir) throws IOException {
   192             final List<Path> files = new ArrayList<Path>();
   192             final List<Path> files = new ArrayList<>();
   193             Files.walkFileTree(dir, new SimpleFileVisitor<Path>() {
   193             Files.walkFileTree(dir, new SimpleFileVisitor<Path>() {
   194                 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs)
   194                 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs)
   195                         throws IOException {
   195                         throws IOException {
   196                     if (file.getFileName().toString().endsWith(".class")) {
   196                     if (file.getFileName().toString().endsWith(".class")) {
   197                         files.add(file);
   197                         files.add(file);