init need not return anything. also this function not used by other places. (#2597)

This commit is contained in:
Alan Lau 2019-05-06 14:26:15 +08:00 committed by 吴晟 Wu Sheng
parent ec9bea9d43
commit da773973be
1 changed files with 1 additions and 3 deletions

View File

@ -89,10 +89,9 @@ public class AgentClassLoader extends ClassLoader {
/**
* Init the default
*
* @return
* @throws AgentPackageNotFoundException
*/
public static AgentClassLoader initDefaultLoader() throws AgentPackageNotFoundException {
public static void initDefaultLoader() throws AgentPackageNotFoundException {
if (DEFAULT_LOADER == null) {
synchronized (AgentClassLoader.class) {
if (DEFAULT_LOADER == null) {
@ -100,7 +99,6 @@ public class AgentClassLoader extends ClassLoader {
}
}
}
return getDefault();
}
public AgentClassLoader(ClassLoader parent) throws AgentPackageNotFoundException {