mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI.git
synced 2024-11-29 14:06:33 +01:00
Shorten line in FileUtil
This commit is contained in:
parent
4851655110
commit
5b92dd5553
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user