From dc0ed0bba9d2adc1f3bee8558746560fbdb0f8a8 Mon Sep 17 00:00:00 2001 From: Kristen Kozak Date: Mon, 18 Dec 2017 22:21:10 -0800 Subject: Add more null annotations (issue #359). This commit adds some Nullable annotations that are required by the Checker Framework, but it doesn't change any other code. It also suppresses some Error Prone and FindBugs warnings that conflict with the Checker Framework, since the three tools use different algorithms. --- .../main/java/io/opencensus/implcore/tags/CurrentTagContextUtils.java | 2 -- 1 file changed, 2 deletions(-) (limited to 'impl_core/src/main/java/io/opencensus/implcore/tags/CurrentTagContextUtils.java') diff --git a/impl_core/src/main/java/io/opencensus/implcore/tags/CurrentTagContextUtils.java b/impl_core/src/main/java/io/opencensus/implcore/tags/CurrentTagContextUtils.java index 1a4ef81b..e6bb12f5 100644 --- a/impl_core/src/main/java/io/opencensus/implcore/tags/CurrentTagContextUtils.java +++ b/impl_core/src/main/java/io/opencensus/implcore/tags/CurrentTagContextUtils.java @@ -20,7 +20,6 @@ import io.grpc.Context; import io.opencensus.common.Scope; import io.opencensus.tags.TagContext; import io.opencensus.tags.unsafe.ContextUtils; -import javax.annotation.Nullable; /** * Utility methods for accessing the {@link TagContext} contained in the {@link io.grpc.Context}. @@ -34,7 +33,6 @@ final class CurrentTagContextUtils { * * @return the {@code TagContext} from the current context. */ - @Nullable static TagContext getCurrentTagContext() { return ContextUtils.TAG_CONTEXT_KEY.get(); } -- cgit v1.2.3