aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar nmittler <nathanmittler@google.com>2015-02-26 07:21:15 -0800
committerGravatar nmittler <nathanmittler@google.com>2015-02-26 07:21:15 -0800
commit8b3d4231c8fd055b86bdb2840df5abce445276dd (patch)
treea9be0dffa40cd8253341a75b238f97af7cc3cc12
parentdbae29ed0fc5b78832b72e0a0e794ae3ffecef4e (diff)
Updating Java code in README.md
-rw-r--r--README.md11
1 files changed, 4 insertions, 7 deletions
diff --git a/README.md b/README.md
index 8e5d816a12..f3e28f82e2 100644
--- a/README.md
+++ b/README.md
@@ -223,19 +223,16 @@ has all the protocol buffer code to populate, serialize, and retrieve our
```java
public static interface Greeter {
-
- public void SayHello(ex.grpc.Helloworld.HelloRequest request,
- com.google.net.stubby.stub.StreamObserver<ex.grpc.Helloworld.HelloReply>
- responseObserver);
+ public void sayHello(io.grpc.examples.Helloworld.HelloRequest request,
+ io.grpc.stub.StreamObserver<io.grpc.examples.Helloworld.HelloReply> responseObserver);
}
```
- _stub_ classes that clients can use to talk to a `Greeter` server. As you can see, they also implement the `Greeter` interface.
```java
-public static class GreeterStub extends
- com.google.net.stubby.stub.AbstractStub<GreeterStub,
- GreeterServiceDescriptor>
+ public static class GreeterStub extends
+ io.grpc.stub.AbstractStub<GreeterStub, GreeterServiceDescriptor>
implements Greeter {
...
}