Fix missing class errors
MODIFY
muzzle/src/main/java/io/opentelemetry/javaagent/tooling/muzzle/AgentTooling.java
muzzle/src/main/java/io/opentelemetry/javaagent/tooling/muzzle/AgentTooling.java
@@ -16,11 +16,14 @@ import net.bytebuddy.agent.builder.AgentBuilder;
*/
public final class AgentTooling {
+ private static final AgentLocationStrategy LOCATION_STRATEGY =
+ locationStrategy(getBootstrapProxy());
+
private static final AgentBuilder.PoolStrategy POOL_STRATEGY =
- new AgentCachingPoolStrategy(locationStrategy(getBootstrapProxy()));
+ new AgentCachingPoolStrategy(LOCATION_STRATEGY);
public static AgentLocationStrategy locationStrategy() {
- return locationStrategy(null);
+ return LOCATION_STRATEGY;
}
public static AgentLocationStrategy locationStrategy(ClassLoader bootstrapProxy) {

Fix missing class errors (#5795)

Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>