aboutsummaryrefslogtreecommitdiff
path: root/impl_core/src/main/java/io/opencensus/implcore/tags/CurrentTagContextUtils.java
diff options
context:
space:
mode:
authorKristen Kozak <sebright@google.com>2017-12-18 22:21:10 -0800
committerKristen Kozak <sebright@google.com>2017-12-19 10:28:06 -0800
commitdc0ed0bba9d2adc1f3bee8558746560fbdb0f8a8 (patch)
treef67fe3d057e4fd40fc3b9d1e1c06e5e5428d3f89 /impl_core/src/main/java/io/opencensus/implcore/tags/CurrentTagContextUtils.java
parentb211232aa11cb3a35a33ad7d0fbd4ce7d07f0522 (diff)
downloadopencensus-java-dc0ed0bba9d2adc1f3bee8558746560fbdb0f8a8.tar.gz
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.
Diffstat (limited to 'impl_core/src/main/java/io/opencensus/implcore/tags/CurrentTagContextUtils.java')
-rw-r--r--impl_core/src/main/java/io/opencensus/implcore/tags/CurrentTagContextUtils.java2
1 files changed, 0 insertions, 2 deletions
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();
}