grpc-java/api
Eric Anderson e08b9db208
Use @DoNotCall for static methods in Builders that throw
Since static methods are pseudo-inherited by Builder implementations but
are trivially accidentally used, we re-define static methods in each
builder to make them behave more like the caller would expect. However,
not all the methods actually work; some just throw because the caller
was certainly not getting what they would expect.

Annotating with `@DoNotCall` can expose the problems at compile time
instead of runtime. While `@Deprecated` would also be an option, it is a
bit harder to figure out the ramifications and whether we want to go
that route.

This change was suggested by a lint tool for XdsServerBuilder and it
seems appropriate so I applied it to the other similar cases I could
find.
2021-05-12 10:12:52 -07:00
..
src Use @DoNotCall for static methods in Builders that throw 2021-05-12 10:12:52 -07:00
BUILD.bazel Use @DoNotCall for static methods in Builders that throw 2021-05-12 10:12:52 -07:00
build.gradle deps: Update guava to 29.0 (#7079) 2020-06-03 13:48:02 -07:00