This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking.git


The following commit(s) were added to refs/heads/master by this push:
     new 4de1fe5  Remove the unused class loader. (#2612)
4de1fe5 is described below

commit 4de1fe58167d49b1b24f6bcf8deb1e6278135c5d
Author: Alan Lau <liuwe...@cmss.chinamobile.com>
AuthorDate: Tue May 7 11:03:42 2019 +0800

    Remove the unused class loader. (#2612)
---
 .../java/org/apache/skywalking/apm/agent/core/plugin/PluginFinder.java | 3 +--
 .../src/main/java/org/apache/skywalking/apm/agent/SkyWalkingAgent.java | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/PluginFinder.java
 
b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/PluginFinder.java
index 99e49a5..5beed29 100644
--- 
a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/PluginFinder.java
+++ 
b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/PluginFinder.java
@@ -67,8 +67,7 @@ public class PluginFinder {
         }
     }
 
-    public List<AbstractClassEnhancePluginDefine> find(TypeDescription 
typeDescription,
-        ClassLoader classLoader) {
+    public List<AbstractClassEnhancePluginDefine> find(TypeDescription 
typeDescription) {
         List<AbstractClassEnhancePluginDefine> matchedPlugins = new 
LinkedList<AbstractClassEnhancePluginDefine>();
         String typeName = typeDescription.getTypeName();
         if (nameMatchDefine.containsKey(typeName)) {
diff --git 
a/apm-sniffer/apm-agent/src/main/java/org/apache/skywalking/apm/agent/SkyWalkingAgent.java
 
b/apm-sniffer/apm-agent/src/main/java/org/apache/skywalking/apm/agent/SkyWalkingAgent.java
index 6ef21ec..516c1cd 100644
--- 
a/apm-sniffer/apm-agent/src/main/java/org/apache/skywalking/apm/agent/SkyWalkingAgent.java
+++ 
b/apm-sniffer/apm-agent/src/main/java/org/apache/skywalking/apm/agent/SkyWalkingAgent.java
@@ -116,7 +116,7 @@ public class SkyWalkingAgent {
         @Override
         public DynamicType.Builder<?> transform(DynamicType.Builder<?> 
builder, TypeDescription typeDescription,
             ClassLoader classLoader, JavaModule module) {
-            List<AbstractClassEnhancePluginDefine> pluginDefines = 
pluginFinder.find(typeDescription, classLoader);
+            List<AbstractClassEnhancePluginDefine> pluginDefines = 
pluginFinder.find(typeDescription);
             if (pluginDefines.size() > 0) {
                 DynamicType.Builder<?> newBuilder = builder;
                 EnhanceContext context = new EnhanceContext();

Reply via email to