Fix missing class errors (#5795)

Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
This commit is contained in:
Trask Stalnaker 2022-04-11 05:27:38 -07:00 committed by GitHub
parent 91066a8073
commit fe84d24b74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -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) {