mirror of https://github.com/grpc/grpc-java.git
examples: remove deprecated stub field references
This commit is contained in:
parent
80a8c8f3d7
commit
253a01461b
|
|
@ -96,7 +96,7 @@ public final class HelloJsonClient {
|
||||||
static final class HelloJsonStub extends AbstractStub<HelloJsonStub> {
|
static final class HelloJsonStub extends AbstractStub<HelloJsonStub> {
|
||||||
|
|
||||||
static final MethodDescriptor<HelloRequest, HelloReply> METHOD_SAY_HELLO =
|
static final MethodDescriptor<HelloRequest, HelloReply> METHOD_SAY_HELLO =
|
||||||
GreeterGrpc.METHOD_SAY_HELLO
|
GreeterGrpc.getSayHelloMethod()
|
||||||
.toBuilder(
|
.toBuilder(
|
||||||
ProtoUtils.jsonMarshaller(HelloRequest.getDefaultInstance()),
|
ProtoUtils.jsonMarshaller(HelloRequest.getDefaultInstance()),
|
||||||
ProtoUtils.jsonMarshaller(HelloReply.getDefaultInstance()))
|
ProtoUtils.jsonMarshaller(HelloReply.getDefaultInstance()))
|
||||||
|
|
|
||||||
|
|
@ -198,7 +198,7 @@ public class DetailErrorSample {
|
||||||
*/
|
*/
|
||||||
void advancedAsyncCall() {
|
void advancedAsyncCall() {
|
||||||
ClientCall<HelloRequest, HelloReply> call =
|
ClientCall<HelloRequest, HelloReply> call =
|
||||||
channel.newCall(GreeterGrpc.METHOD_SAY_HELLO, CallOptions.DEFAULT);
|
channel.newCall(GreeterGrpc.getSayHelloMethod(), CallOptions.DEFAULT);
|
||||||
|
|
||||||
final CountDownLatch latch = new CountDownLatch(1);
|
final CountDownLatch latch = new CountDownLatch(1);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -177,7 +177,7 @@ public class ErrorHandlingClient {
|
||||||
*/
|
*/
|
||||||
void advancedAsyncCall() {
|
void advancedAsyncCall() {
|
||||||
ClientCall<HelloRequest, HelloReply> call =
|
ClientCall<HelloRequest, HelloReply> call =
|
||||||
channel.newCall(GreeterGrpc.METHOD_SAY_HELLO, CallOptions.DEFAULT);
|
channel.newCall(GreeterGrpc.getSayHelloMethod(), CallOptions.DEFAULT);
|
||||||
|
|
||||||
final CountDownLatch latch = new CountDownLatch(1);
|
final CountDownLatch latch = new CountDownLatch(1);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue