Skip to content

Commit

Permalink
Fixes in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKunz committed Dec 7, 2023
1 parent cbdb726 commit b443b47
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void register(InstrumentationModule module) {
if (modulesClassloader != null) {
InstrumentationModuleClassLoader modulesCl = modulesClassloader.get();
if (modulesCl != null) {
// Classloader has already been created, at the module to it
// Classloader has already been created, add the module to it
modulesCl.installModule(module);
}
}
Expand Down Expand Up @@ -187,7 +187,6 @@ public static AgentBuilder.Identified.Extendable registerModuleOnMatch(
}
return agentBuilder.transform(
(builder, typeDescription, classLoader, javaModule, protectionDomain) -> {
// this causes the classloader to be created and kept alive when the first class matches
registerModuleForClassloader(module, classLoader);
return builder;
});
Expand Down

0 comments on commit b443b47

Please sign in to comment.