Package net.bytebuddy.asm
Annotation Type Advice.StubValue
-
@Documented @Retention(RUNTIME) @Target(PARAMETER) public static @interface Advice.StubValueIndicates that the annotated parameter should always return a boxed version of the instrumented method's return value (i.e.
0for numeric values,falseforbooleantypes andnullfor reference types). The annotated parameter must be of typeObjectand cannot be assigned a value.Important: Don't confuse this annotation with
StubValueorMemberSubstitution.StubValue. This annotation should be used only in combination withAdvice.- See Also:
Advice,Advice.OnMethodEnter,Advice.OnMethodExit