From 3ebbe7c29932648ac530772d2f1eeccc133efe7b Mon Sep 17 00:00:00 2001 From: Alan Lau Date: Mon, 20 May 2019 21:54:05 +0800 Subject: [PATCH] Remove the ex which not thrown. & Remove unused logger. (#2710) --- .../core/plugin/loader/InterceptorInstanceLoader.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/loader/InterceptorInstanceLoader.java b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/loader/InterceptorInstanceLoader.java index df7f9253a..e1bdb39b0 100644 --- a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/loader/InterceptorInstanceLoader.java +++ b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/loader/InterceptorInstanceLoader.java @@ -20,10 +20,7 @@ package org.apache.skywalking.apm.agent.core.plugin.loader; import org.apache.skywalking.apm.agent.core.boot.AgentPackageNotFoundException; -import org.apache.skywalking.apm.agent.core.logging.api.ILog; -import org.apache.skywalking.apm.agent.core.logging.api.LogManager; -import java.lang.reflect.InvocationTargetException; import java.util.HashMap; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; @@ -38,7 +35,6 @@ import java.util.concurrent.locks.ReentrantLock; * Created by wusheng on 16/8/2. */ public class InterceptorInstanceLoader { - private static final ILog logger = LogManager.getLogger(InterceptorInstanceLoader.class); private static ConcurrentHashMap INSTANCE_CACHE = new ConcurrentHashMap(); private static ReentrantLock INSTANCE_LOAD_LOCK = new ReentrantLock(); @@ -53,14 +49,13 @@ public class InterceptorInstanceLoader { * @param targetClassLoader the class loader for current application context * @param expected type * @return the type reference. - * @throws InvocationTargetException * @throws IllegalAccessException * @throws InstantiationException * @throws ClassNotFoundException * @throws AgentPackageNotFoundException */ public static T load(String className, ClassLoader targetClassLoader) - throws InvocationTargetException, IllegalAccessException, InstantiationException, ClassNotFoundException, AgentPackageNotFoundException { + throws IllegalAccessException, InstantiationException, ClassNotFoundException, AgentPackageNotFoundException { if (targetClassLoader == null) { targetClassLoader = InterceptorInstanceLoader.class.getClassLoader(); }