diff options
author | Carl Mastrangelo <notcarl@google.com> | 2016-08-12 14:52:00 -0700 |
---|---|---|
committer | Carl Mastrangelo <notcarl@google.com> | 2016-08-12 14:55:00 -0700 |
commit | 1285477133774b04bd4bd59c026ba1032c9d870c (patch) | |
tree | 439d71f5ae4794c7a42cc80c6c41021ed431546b /auth | |
parent | 55942fbd3787d48e654a567195dc32a465e3a646 (diff) | |
download | grpc-grpc-java-1285477133774b04bd4bd59c026ba1032c9d870c.tar.gz |
all: add parameter name to checkNotNull
After debugging #2153, it would have been nice to know what the exact
parameter was that was null. This change adds a name for each
checkNotNull (and tries to normalized on static imports in order to
shorten lines)
Diffstat (limited to 'auth')
-rw-r--r-- | auth/src/main/java/io/grpc/auth/ClientAuthInterceptor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/src/main/java/io/grpc/auth/ClientAuthInterceptor.java b/auth/src/main/java/io/grpc/auth/ClientAuthInterceptor.java index 608013f70..ccd02f0f7 100644 --- a/auth/src/main/java/io/grpc/auth/ClientAuthInterceptor.java +++ b/auth/src/main/java/io/grpc/auth/ClientAuthInterceptor.java @@ -70,7 +70,7 @@ public final class ClientAuthInterceptor implements ClientInterceptor { public ClientAuthInterceptor( Credentials credentials, @SuppressWarnings("unused") Executor executor) { - this.credentials = Preconditions.checkNotNull(credentials); + this.credentials = Preconditions.checkNotNull(credentials, "credentials"); // TODO(louiscryan): refresh token asynchronously with this executor. } |