Skip to content

Commit

Permalink
Name is not needed for annotation value parameter (#12113)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored Aug 26, 2024
1 parent a5228c5 commit d6d3334
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static class WrapRunnableAdvice {

@Advice.OnMethodEnter(suppress = Throwable.class)
@Advice.AssignReturned.ToArguments(@ToArgument(0))
public static Runnable wrap(@Advice.Argument(value = 0) Runnable task) {
public static Runnable wrap(@Advice.Argument(0) Runnable task) {
if (task == null) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static class WrapFunctionAdvice {

@Advice.OnMethodEnter(suppress = Throwable.class)
@Advice.AssignReturned.ToArguments(@ToArgument(1))
public static Function1<?, ?> wrap(@Advice.Argument(value = 1) Function1<?, ?> function1) {
public static Function1<?, ?> wrap(@Advice.Argument(1) Function1<?, ?> function1) {
if (function1 == null) {
return null;
}
Expand Down

0 comments on commit d6d3334

Please sign in to comment.