diff options
author | Kristen Kozak <sebright@google.com> | 2017-12-18 22:21:10 -0800 |
---|---|---|
committer | Kristen Kozak <sebright@google.com> | 2017-12-19 10:28:06 -0800 |
commit | dc0ed0bba9d2adc1f3bee8558746560fbdb0f8a8 (patch) | |
tree | f67fe3d057e4fd40fc3b9d1e1c06e5e5428d3f89 /impl_core/src/main/java/io/opencensus/implcore/tags/CurrentTagContextUtils.java | |
parent | b211232aa11cb3a35a33ad7d0fbd4ce7d07f0522 (diff) | |
download | opencensus-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.java | 2 |
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(); } |