Remove try/finally, its not necessary here

This commit is contained in:
Robert Muir 2015-06-29 12:35:59 -04:00
parent f9598030fd
commit b93af3c27c
1 changed files with 42 additions and 48 deletions

View File

@ -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 {