Skip to content

Commit 1564e89

Browse files
committed
Avoid loading of generated advice class.
1 parent e1d96f4 commit 1564e89

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

byte-buddy-dep/src/main/java/net/bytebuddy/build/CachedReturnPlugin.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ protected enum AdviceResolver {
228228
/**
229229
* The created dynamic type to use for advice.
230230
*/
231-
private final DynamicType.Loaded<?> dynamicType;
231+
private final DynamicType dynamicType;
232232

233233
/**
234234
* Creates an advice resolver.
@@ -264,9 +264,7 @@ protected enum AdviceResolver {
264264
.annotateParameter(AnnotationDescription.Builder.ofType(CachedReturnPlugin.CacheField.class).build())
265265
.intercept(new Implementation.Simple(new ExitAdviceByteCodeAppender(load, store, convert, branch, StackSize.of(type).getSize())))
266266
.annotateMethod(AnnotationDescription.Builder.ofType(Advice.OnMethodExit.class).build())
267-
.make()
268-
.load(null);
269-
dynamicType.getLoaded().getMethods();
267+
.make();
270268
}
271269

272270
/**

0 commit comments

Comments
 (0)