Skip to content

Commit 3cd545e

Browse files
committed
Fix compile error
1 parent 0ac1bc6 commit 3cd545e

File tree

1 file changed

+2
-2
lines changed
  • instrumentation/apache-dubbo-2.7/library-autoconfigure/src/main/java/io/opentelemetry/instrumentation/apachedubbo/v2_7

1 file changed

+2
-2
lines changed

instrumentation/apache-dubbo-2.7/library-autoconfigure/src/main/java/io/opentelemetry/instrumentation/apachedubbo/v2_7/DubboHeadersGetter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ enum DubboHeadersGetter implements TextMapGetter<DubboRequest> {
1414
INSTANCE;
1515

1616
@Override
17-
@SuppressWarnings("deprecation") // deprecation for dubbo 3.2.15
17+
@SuppressWarnings("unchecked") // unchecked for dubbo 2.7.6
1818
public Iterable<String> keys(DubboRequest request) {
1919
RpcInvocation invocation = request.invocation();
2020
Map<String, String> attachments = invocation.getAttachments();
21-
// in 2.7.6+, type of attachments is StringToObjectMap, it doesn't contains keySet method.
21+
// in 2.7.6+, type of attachments is StringToObjectMap, it doesn't contain keySet method.
2222
if ("ObjectToStringMap".equals(attachments.getClass().getSimpleName())) {
2323
Method getObjectAttachmentsMethod = null;
2424
try {

0 commit comments

Comments
 (0)