Better naming

This commit is contained in:
Trask Stalnaker 2020-02-12 21:07:51 -08:00
parent 4dfd9534e8
commit 94dd781e50
1 changed files with 3 additions and 3 deletions

View File

@ -92,13 +92,13 @@ public final class ClassloadingInstrumentation extends Instrumenter.Default {
public static void onExit( public static void onExit(
@Advice.Local("_callDepth") final int callDepth, @Advice.Local("_callDepth") final int callDepth,
@Advice.Return(readOnly = false) Class<?> result, @Advice.Return(readOnly = false) Class<?> result,
@Advice.Enter final Class<?> clazz) { @Advice.Enter final Class<?> resultFromBootstrapLoader) {
if (callDepth > 0) { if (callDepth > 0) {
return; return;
} }
CallDepthThreadLocalMap.reset(ClassLoader.class); CallDepthThreadLocalMap.reset(ClassLoader.class);
if (clazz != null) { if (resultFromBootstrapLoader != null) {
result = clazz; result = resultFromBootstrapLoader;
} }
} }
} }