mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-09-06 05:17:05 +02:00
Shorten line in FileUtil
This commit is contained in:
@@ -75,7 +75,9 @@ public class FileUtil {
|
|||||||
list = new ArrayList<>();
|
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) {
|
while (true) {
|
||||||
JarEntry j = jis.getNextJarEntry();
|
JarEntry j = jis.getNextJarEntry();
|
||||||
if (j == null) {
|
if (j == null) {
|
||||||
|
Reference in New Issue
Block a user