Fix weird repo mess
This commit is contained in:
parent
b6f8b5871c
commit
8debdb59e4
@ -1,20 +0,0 @@
|
||||
package org.jboss.netty.handler.codec.serialization;
|
||||
|
||||
class ClassLoaderClassResolver implements ClassResolver {
|
||||
|
||||
private final ClassLoader classLoader;
|
||||
|
||||
ClassLoaderClassResolver(ClassLoader classLoader) {
|
||||
this.classLoader = classLoader;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<?> resolve(String className) throws ClassNotFoundException {
|
||||
try {
|
||||
return classLoader.loadClass(className);
|
||||
} catch (ClassNotFoundException e) {
|
||||
return Class.forName(className, false, classLoader);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user