diff options
author | Carl Mastrangelo <notcarl@google.com> | 2017-06-06 13:04:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-06 13:04:32 -0700 |
commit | 0622dce9258f1990ede128a126382a7e415a1361 (patch) | |
tree | a4fa6384cad61c7ac2642584075a2ef388363e90 /context | |
parent | 9057bc723c4c6d966cfcfbaf904cdfa664b057fc (diff) | |
download | grpc-grpc-java-0622dce9258f1990ede128a126382a7e415a1361.tar.gz |
context: declare that context should not be mocked
Diffstat (limited to 'context')
-rw-r--r-- | context/src/main/java/io/grpc/Context.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/context/src/main/java/io/grpc/Context.java b/context/src/main/java/io/grpc/Context.java index 8717cb043..41c7c76d7 100644 --- a/context/src/main/java/io/grpc/Context.java +++ b/context/src/main/java/io/grpc/Context.java @@ -87,8 +87,10 @@ import java.util.logging.Logger; * they store.</li> * <li>Context is not intended for passing optional parameters to an API and developers should * take care to avoid excessive dependence on context when designing an API.</li> + * <li>Do not mock this class. Use {@link #ROOT} for a non-null instance. * </ul> */ +/* @DoNotMock("Use ROOT for a non-null Context") // commented out to avoid dependencies */ public class Context { private static final Logger log = Logger.getLogger(Context.class.getName()); |