Skip to content

Commit 5c3290d

Browse files
committed
fix style issues
1 parent 16f5559 commit 5c3290d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

instrumentation/vertx/vertx-sql-client/vertx-sql-client-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/vertx/v5_0/sql/QueryExecutorInstrumentation.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ public static void onExit(@Advice.This Object queryExecutor) {
5656
public static class QueryAdvice {
5757
public static class AdviceScope {
5858
private final CallDepth callDepth;
59-
private final @Nullable VertxSqlClientRequest otelRequest;
60-
private final @Nullable Context context;
61-
private final @Nullable Scope scope;
59+
@Nullable private final VertxSqlClientRequest otelRequest;
60+
@Nullable private final Context context;
61+
@Nullable private final Scope scope;
6262

6363
private AdviceScope(CallDepth callDepth) {
6464
this(callDepth, null, null, null);

instrumentation/vertx/vertx-sql-client/vertx-sql-client-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/vertx/v5_0/sql/SqlClientBaseInstrumentation.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ public static void onExit(@Advice.This SqlClientBase sqlClientBase) {
5151
public static class QueryAdvice {
5252
@Advice.OnMethodEnter(suppress = Throwable.class)
5353
public static CallDepth onEnter(@Advice.This SqlClientBase sqlClientBase) {
54-
CallDepth callDepth = null;
55-
callDepth = CallDepth.forClass(SqlClientBase.class);
54+
CallDepth callDepth = CallDepth.forClass(SqlClientBase.class);
5655
if (callDepth.getAndIncrement() > 0) {
5756
return callDepth;
5857
}

0 commit comments

Comments
 (0)