移除无用的方法
This commit is contained in:
parent
f9653bbdf3
commit
aae50a3480
|
|
@ -38,7 +38,7 @@ public class SkywalkingAgent {
|
|||
|
||||
startBootPluginDefines(pluginDefineCategory.getBootPluginsDefines());
|
||||
|
||||
new AgentBuilder.Default().type(exclusivePackageClass()).transform(new AgentBuilder.Transformer() {
|
||||
new AgentBuilder.Default().type(myMatcher()).transform(new AgentBuilder.Transformer() {
|
||||
public DynamicType.Builder<?> transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassLoader classLoader) {
|
||||
AbstractClassEnhancePluginDefine pluginDefine = pluginDefineCategory.getClassEnhancePluginDefines().get(typeDescription.getTypeName());
|
||||
if (pluginDefine == null) {
|
||||
|
|
@ -58,10 +58,6 @@ public class SkywalkingAgent {
|
|||
}
|
||||
}
|
||||
|
||||
private static ElementMatcher.Junction<NamedElement> exclusivePackageClass() {
|
||||
return myMatcher();
|
||||
}
|
||||
|
||||
private static <T extends NamedElement> ElementMatcher.Junction<T> myMatcher() {
|
||||
return new SkyWalkingEnhanceMatcher<T>();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue