From b443b478863fa6c5a6bbcdec08be3459ef2d7daf Mon Sep 17 00:00:00 2001 From: Jonas Kunz Date: Wed, 6 Dec 2023 10:29:10 +0100 Subject: [PATCH] Fixes in comments --- .../tooling/instrumentation/indy/IndyModuleRegistry.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/instrumentation/indy/IndyModuleRegistry.java b/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/instrumentation/indy/IndyModuleRegistry.java index 66321a754a2d..37a62ad14ecc 100644 --- a/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/instrumentation/indy/IndyModuleRegistry.java +++ b/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/instrumentation/indy/IndyModuleRegistry.java @@ -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); } } @@ -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; });