Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Commit 020bc80

Browse files
committed
Fix warnings.
1 parent 8ec59f0 commit 020bc80

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

api/src/main/java/io/opencensus/trace/unsafe/ContextHandleUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public static Span getValue(ContextHandle context) {
8383
*
8484
* @return The context, or null if not a GRPC backed context handle.
8585
*/
86+
@Nullable
8687
public static Context tryExtractGrpcContext(ContextHandle handle) {
8788
if (handle instanceof ContextHandleImpl) {
8889
return ((ContextHandleImpl) handle).getContext();

api/src/main/java/io/opencensus/trace/unsafe/ContextManagerImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ public ContextHandle currentContext() {
3131
}
3232

3333
@Override
34+
@SuppressWarnings({"deprecation"})
3435
public ContextHandle withValue(ContextHandle contextHandle, @Nullable Span span) {
3536
return wrapContext(ContextUtils.withValue(unwrapContext(contextHandle), span));
3637
}
3738

3839
@Override
40+
@SuppressWarnings({"deprecation"})
3941
public Span getValue(ContextHandle contextHandle) {
4042
return ContextUtils.getValue(unwrapContext(contextHandle));
4143
}

0 commit comments

Comments
 (0)