Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
amarziali committed Dec 12, 2024
1 parent 209ad42 commit ce40405
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package datadog.trace.instrumentation.jbossmodules;

import static datadog.trace.agent.tooling.bytebuddy.matcher.NameMatchers.named;
import static datadog.trace.instrumentation.jbossmodules.ModuleNameHelper.STRIPPER;
import static datadog.trace.instrumentation.jbossmodules.ModuleNameHelper.NAME_EXTRACTOR;
import static net.bytebuddy.matcher.ElementMatchers.isConstructor;
import static net.bytebuddy.matcher.ElementMatchers.isMethod;
import static net.bytebuddy.matcher.ElementMatchers.takesArgument;
Expand Down Expand Up @@ -163,7 +163,7 @@ public static void onExit(
public static class CaptureModuleNameAdvice {
@Advice.OnMethodExit(suppress = Throwable.class)
public static void afterConstruct(@Advice.This final Module module) {
ClassloaderServiceNames.addIfMissing(module.getClassLoader(), STRIPPER);
ClassloaderServiceNames.addIfMissing(module.getClassLoader(), NAME_EXTRACTOR);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ private ModuleNameHelper() {}

private static final Pattern SUBDEPLOYMENT_MATCH =
Pattern.compile("deployment(?>.+\\.ear)?\\.(.+)\\.[j|w]ar");
public static final Function<ClassLoader, Supplier<String>> STRIPPER =
public static final Function<ClassLoader, Supplier<String>> NAME_EXTRACTOR =
classLoader -> {
final Matcher matcher =
SUBDEPLOYMENT_MATCH.matcher(
Expand Down

0 comments on commit ce40405

Please sign in to comment.