From 5d1480335bc9115aef05758ea40b1e158bb52391 Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Mon, 26 Aug 2024 15:49:34 +0300 Subject: [PATCH] Name is not needed for annotation value parameter --- .../v23_11/LocalSchedulerActivationInstrumentation.java | 2 +- .../finaglehttp/v23_11/PromiseMonitoredInstrumentation.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/instrumentation/finagle-http-23.11/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/finaglehttp/v23_11/LocalSchedulerActivationInstrumentation.java b/instrumentation/finagle-http-23.11/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/finaglehttp/v23_11/LocalSchedulerActivationInstrumentation.java index fdb66bb87853..1cbec8c9c0fd 100644 --- a/instrumentation/finagle-http-23.11/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/finaglehttp/v23_11/LocalSchedulerActivationInstrumentation.java +++ b/instrumentation/finagle-http-23.11/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/finaglehttp/v23_11/LocalSchedulerActivationInstrumentation.java @@ -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; } diff --git a/instrumentation/finagle-http-23.11/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/finaglehttp/v23_11/PromiseMonitoredInstrumentation.java b/instrumentation/finagle-http-23.11/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/finaglehttp/v23_11/PromiseMonitoredInstrumentation.java index af7ba98b92ac..bef50738b3ec 100644 --- a/instrumentation/finagle-http-23.11/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/finaglehttp/v23_11/PromiseMonitoredInstrumentation.java +++ b/instrumentation/finagle-http-23.11/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/finaglehttp/v23_11/PromiseMonitoredInstrumentation.java @@ -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; }