You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2019/05/16 13:02:52 UTC
[skywalking] branch master updated: Remove the unused method. &
Modify doc. (#2692)
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 6fff2a8 Remove the unused method. & Modify doc. (#2692)
6fff2a8 is described below
commit 6fff2a81cf7d3d01c5b5f537c6a2f092414b0216
Author: Alan Lau <li...@cmss.chinamobile.com>
AuthorDate: Thu May 16 21:02:45 2019 +0800
Remove the unused method. & Modify doc. (#2692)
---
.../agent/core/conf/SnifferConfigInitializer.java | 2 +-
.../agent/core/plugin/PluginResourcesResolver.java | 22 ----------------------
2 files changed, 1 insertion(+), 23 deletions(-)
diff --git a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/conf/SnifferConfigInitializer.java b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/conf/SnifferConfigInitializer.java
index a303827..c4fbcdf 100644
--- a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/conf/SnifferConfigInitializer.java
+++ b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/conf/SnifferConfigInitializer.java
@@ -52,7 +52,7 @@ public class SnifferConfigInitializer {
/**
* If the specified agent config path is set, the agent will try to locate the specified agent config. If the
* specified agent config path is not set , the agent will try to locate `agent.config`, which should be in the
- * /config dictionary of agent package.
+ * /config directory of agent package.
* <p>
* Also try to override the config by system.properties. All the keys in this place should
* start with {@link #ENV_KEY_PREFIX}. e.g. in env `skywalking.agent.service_name=yourAppName` to override
diff --git a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/PluginResourcesResolver.java b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/PluginResourcesResolver.java
index 6a973a9..878e2b9 100644
--- a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/PluginResourcesResolver.java
+++ b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/PluginResourcesResolver.java
@@ -55,26 +55,4 @@ public class PluginResourcesResolver {
}
return null;
}
-
- /**
- * Get the classloader.
- * First getDefault current thread's classloader,
- * if fail, getDefault {@link PluginResourcesResolver}'s classloader.
- *
- * @return the classloader to find plugin definitions.
- */
- private ClassLoader getDefaultClassLoader() {
- ClassLoader cl = null;
- try {
- cl = Thread.currentThread().getContextClassLoader();
- } catch (Throwable ex) {
- // Cannot access thread context ClassLoader - falling back to system class loader...
- }
- if (cl == null) {
- // No thread context class loader -> use class loader of this class.
- cl = PluginResourcesResolver.class.getClassLoader();
- }
- return cl;
- }
-
}