context/core/netty: Add @CheckReturnValue to Context - #4430
Conversation
4f731ec to
42b82b5
Compare
|
This needs to be check with an internal presubmit first. |
Yes, this change is scary. |
|
The internal presubmit (CL/195275931) passed. |
|
One other concern: this package has traditionally not had any dependencies (including DoNotMock). @adriancole I recall you being involved in the discussion around deps of Context. Would taking a compile time dependency on ErrorProne annotations be feasible? |
One of Context users, Zipkin instrumentation libs, has no deps, not even annotation jars. So this PR is deliberately not adding any dependencies. So |
| new Exception()); | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
This probably deserves a comment why it isn't the error prone version.
carl-mastrangelo
left a comment
There was a problem hiding this comment.
one comment, but LGTM
|
Thanks for the review @carl-mastrangelo . |
This change is