From 5b92dd55534f28d021f1b8503c63ea6b17937ef5 Mon Sep 17 00:00:00 2001 From: Draycia Date: Mon, 10 Jun 2019 11:22:05 -0700 Subject: [PATCH] Shorten line in FileUtil --- src/main/java/me/clip/placeholderapi/util/FileUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/clip/placeholderapi/util/FileUtil.java b/src/main/java/me/clip/placeholderapi/util/FileUtil.java index 0ac2675..8192cfb 100644 --- a/src/main/java/me/clip/placeholderapi/util/FileUtil.java +++ b/src/main/java/me/clip/placeholderapi/util/FileUtil.java @@ -75,7 +75,9 @@ public class FileUtil { list = new ArrayList<>(); } - try (URLClassLoader cl = new URLClassLoader(new URL[]{jar}, clazz.getClassLoader()); JarInputStream jis = new JarInputStream(jar.openStream())) { + try (URLClassLoader cl = new URLClassLoader(new URL[]{jar}, clazz.getClassLoader()); + JarInputStream jis = new JarInputStream(jar.openStream())) { + while (true) { JarEntry j = jis.getNextJarEntry(); if (j == null) {