Skip to content

Commit 5e05e30

Browse files
committed
pr review
1 parent 403bcce commit 5e05e30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

muzzle/src/main/java/io/opentelemetry/javaagent/tooling/muzzle/AgentCachingPoolStrategy.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ public AgentTypePool typePool(
146146
return typePool(classFileLocator, classLoader);
147147
}
148148

149+
// visible for testing
149150
TypePool.CacheProvider getCacheProvider(ClassLoader classLoader) {
150151
if (classLoader == null) {
151152
return bootstrapCacheProvider;
@@ -167,6 +168,7 @@ TypePool.CacheProvider getCacheProvider(ClassLoader classLoader) {
167168
*
168169
* <p>The loaderHash exists to avoid calling get & strengthening the Reference.
169170
*/
171+
// visible for testing
170172
static final class TypeCacheKey {
171173
private final int loaderHash;
172174
@Nullable private final WeakReference<ClassLoader> loaderRef;

0 commit comments

Comments
 (0)