mirror of https://github.com/grpc/grpc-java.git
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. |
||
|---|---|---|
| .. | ||
| src | ||
| BUILD.bazel | ||
| build.gradle | ||