mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
9 lines
268 B
Java
9 lines
268 B
Java
class Test {
|
|
public final <T> Class<T> findClass(final String className) throws ClassNotFoundException {
|
|
return (Class<T>)Class.forName(className, true, newMethod());
|
|
}
|
|
|
|
private ClassLoader newMethod() {
|
|
return getClass().getClassLoader();
|
|
}
|
|
} |