space to tabs
This commit is contained in:
parent
6e9fd72612
commit
ee0fc3b47b
@ -32,15 +32,15 @@ public class JarLoader {
|
|||||||
|
|
||||||
public static boolean load(URL url) {
|
public static boolean load(URL url) {
|
||||||
// If the file already is loaded we can skip it
|
// If the file already is loaded we can skip it
|
||||||
for (URL otherUrl : sysloader.getURLs()) {
|
for (URL otherUrl : sysloader.getURLs()) {
|
||||||
if (otherUrl.sameFile(url)) {
|
if (otherUrl.sameFile(url)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Method addURLMethod = URLClassLoader.class.getDeclaredMethod("addURL", new Class[]{ URL.class });
|
Method addURLMethod = URLClassLoader.class.getDeclaredMethod("addURL", new Class[]{ URL.class });
|
||||||
addURLMethod.setAccessible(true);
|
addURLMethod.setAccessible(true);
|
||||||
addURLMethod.invoke(sysloader, new Object[]{ url });
|
addURLMethod.invoke(sysloader, new Object[]{ url });
|
||||||
return true;
|
return true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user