Skip to content

Commit db122af

Browse files
committed
Fix compilation warnings and spotless
1 parent b88b9fe commit db122af

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

instrumentation/armeria/armeria-grpc-1.14/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/armeria/grpc/v1_14/ArmeriaServerCallInstrumentation.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
import com.linecorp.armeria.server.ServiceRequestContext;
1212
import io.grpc.ServerCall;
13-
import io.opentelemetry.instrumentation.api.util.VirtualField;
1413
import io.opentelemetry.instrumentation.grpc.v1_6.GrpcAuthorityStorage;
1514
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;
1615
import io.opentelemetry.javaagent.extension.instrumentation.TypeTransformer;

instrumentation/grpc-1.6/library/src/main/java/io/opentelemetry/instrumentation/grpc/v1_6/GrpcAuthorityStorage.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
package io.opentelemetry.instrumentation.grpc.v1_6;
27

38
import io.grpc.ServerCall;
49
import io.opentelemetry.instrumentation.api.util.VirtualField;
510

611
/**
7-
* In case a {@link ServerCall} implementation does not implement {@link ServerCall#getAuthority()} like armeria,
8-
* this utility class should be used to provide the authority instead
12+
* In case a {@link ServerCall} implementation does not implement {@link ServerCall#getAuthority()}
13+
* like armeria, this utility class should be used to provide the authority instead
914
*/
1015
public class GrpcAuthorityStorage {
1116

1217
private static final VirtualField<ServerCall<?, ?>, String> AUTHORITY_FIELD =
1318
VirtualField.find(ServerCall.class, String.class);
1419

20+
private GrpcAuthorityStorage() {}
21+
1522
public static void setAuthority(ServerCall<?, ?> call, String authority) {
1623
AUTHORITY_FIELD.set(call, authority);
1724
}

0 commit comments

Comments
 (0)