src/share/classes/org/openjdk/jigsaw/SimpleLibrary.java

Print this page

        

*** 1008,1019 **** if (f.getPath().endsWith(".class")) addToIndex(ClassInfo.read(f), ix); } }); } else if (cd.isFile()) { ! FileInputStream fis = new FileInputStream(cd); ! ZipInputStream zis = new ZipInputStream(fis); ZipEntry ze; while ((ze = zis.getNextEntry()) != null) { if (!ze.getName().endsWith(".class")) continue; addToIndex(ClassInfo.read(Files.nonClosingStream(zis), --- 1008,1020 ---- if (f.getPath().endsWith(".class")) addToIndex(ClassInfo.read(f), ix); } }); } else if (cd.isFile()) { ! try (FileInputStream fis = new FileInputStream(cd); ! ZipInputStream zis = new ZipInputStream(fis)) ! { ZipEntry ze; while ((ze = zis.getNextEntry()) != null) { if (!ze.getName().endsWith(".class")) continue; addToIndex(ClassInfo.read(Files.nonClosingStream(zis),
*** 1020,1029 **** --- 1021,1031 ---- ze.getSize(), mid + ":" + ze.getName()), ix); } } + } ix.store(); } /**