Remove try/finally, its not necessary here
This commit is contained in:
parent
f9598030fd
commit
b93af3c27c
|
@ -378,7 +378,6 @@ public class Bootstrap {
|
|||
ClassLoader classLoader = ClassLoader.getSystemClassLoader();
|
||||
Class<?> classLoaderClass = classLoader.getClass();
|
||||
Method addURL = null;
|
||||
try {
|
||||
while (!classLoaderClass.equals(Object.class)) {
|
||||
try {
|
||||
addURL = classLoaderClass.getDeclaredMethod("addURL", URL.class);
|
||||
|
@ -430,11 +429,6 @@ public class Bootstrap {
|
|||
}
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
if (addURL != null) {
|
||||
addURL.setAccessible(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static Path[] files(Path from) throws IOException {
|
||||
|
|
Loading…
Reference in New Issue