forked from External/mage
[refactoring][minor] Replaced all tabs with four spaces.
This commit is contained in:
parent
e646e4768d
commit
239a4fb100
2891 changed files with 79411 additions and 79411 deletions
|
|
@ -40,37 +40,37 @@ import java.net.URLClassLoader;
|
|||
*/
|
||||
public class PluginClassLoader extends URLClassLoader {
|
||||
|
||||
public PluginClassLoader(){
|
||||
super(new URL[0], PluginClassLoader.class.getClassLoader());
|
||||
}
|
||||
public PluginClassLoader(){
|
||||
super(new URL[0], PluginClassLoader.class.getClassLoader());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addURL(URL url) {
|
||||
super.addURL(url);
|
||||
}
|
||||
@Override
|
||||
public void addURL(URL url) {
|
||||
super.addURL(url);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<?> loadClass(String name) throws ClassNotFoundException {
|
||||
// First check whether it's already been loaded, if so use it
|
||||
Class loadedClass = findLoadedClass(name);
|
||||
@Override
|
||||
public Class<?> loadClass(String name) throws ClassNotFoundException {
|
||||
// First check whether it's already been loaded, if so use it
|
||||
Class loadedClass = findLoadedClass(name);
|
||||
|
||||
// Not loaded, try to load it
|
||||
if (loadedClass == null) {
|
||||
try {
|
||||
// Ignore parent delegation and just try to load locally
|
||||
loadedClass = findClass(name);
|
||||
} catch (ClassNotFoundException e) {
|
||||
// Swallow exception - does not exist locally
|
||||
}
|
||||
// Not loaded, try to load it
|
||||
if (loadedClass == null) {
|
||||
try {
|
||||
// Ignore parent delegation and just try to load locally
|
||||
loadedClass = findClass(name);
|
||||
} catch (ClassNotFoundException e) {
|
||||
// Swallow exception - does not exist locally
|
||||
}
|
||||
|
||||
// If not found locally, use normal parent delegation in URLClassloader
|
||||
if (loadedClass == null) {
|
||||
// throws ClassNotFoundException if not found in delegation hierarchy at all
|
||||
loadedClass = super.loadClass(name);
|
||||
}
|
||||
}
|
||||
// will never return null (ClassNotFoundException will be thrown)
|
||||
return loadedClass;
|
||||
// If not found locally, use normal parent delegation in URLClassloader
|
||||
if (loadedClass == null) {
|
||||
// throws ClassNotFoundException if not found in delegation hierarchy at all
|
||||
loadedClass = super.loadClass(name);
|
||||
}
|
||||
}
|
||||
// will never return null (ClassNotFoundException will be thrown)
|
||||
return loadedClass;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue