public static List<String> getClassNamesFromJar(File jarFile) throws IOException {
List<String> result = new ArrayList<>();
try (
- JarInputStream jarInputStream = new JarInputStream(new FileInputStream(jarFile));
+ JarInputStream jarInputStream = new JarInputStream(new FileInputStream(jarFile))
) {
while (true) {
JarEntry jarEntry = jarInputStream.getNextJarEntry();