aboutsummaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorEric Gribkoff <ericgribkoff@google.com>2017-05-02 10:24:23 -0700
committerGitHub <noreply@github.com>2017-05-02 10:24:23 -0700
commit7aa807ce6d894254348ad5f300bff4d6be4190d1 (patch)
tree6ae941dd264243d42c14b78732b8537c3e89e352 /compiler
parent06e823e25141b54954ee3400f55ffaf3221ed6fd (diff)
downloadgrpc-grpc-java-7aa807ce6d894254348ad5f300bff4d6be4190d1.tar.gz
compiler: remove streaming calls from javadoc for newFutureStub
FutureStubs only support unary calls
Diffstat (limited to 'compiler')
-rw-r--r--compiler/src/java_plugin/cpp/java_generator.cpp4
-rw-r--r--compiler/src/test/golden/TestService.java.txt2
-rw-r--r--compiler/src/testLite/golden/TestService.java.txt2
-rw-r--r--compiler/src/testNano/golden/TestService.java.txt2
4 files changed, 5 insertions, 5 deletions
diff --git a/compiler/src/java_plugin/cpp/java_generator.cpp b/compiler/src/java_plugin/cpp/java_generator.cpp
index d48263e25..3ce4adba5 100644
--- a/compiler/src/java_plugin/cpp/java_generator.cpp
+++ b/compiler/src/java_plugin/cpp/java_generator.cpp
@@ -1078,8 +1078,8 @@ static void PrintService(const ServiceDescriptor* service,
p->Print("}\n\n");
// TODO(nmittler): Replace with WriteDocComment once included by protobuf distro.
- GrpcWriteDocComment(p, " Creates a new ListenableFuture-style stub that supports unary and "
- "streaming output calls on the service");
+ GrpcWriteDocComment(p, " Creates a new ListenableFuture-style stub that supports unary calls "
+ "on the service");
p->Print(
*vars,
"public static $service_name$FutureStub newFutureStub(\n"
diff --git a/compiler/src/test/golden/TestService.java.txt b/compiler/src/test/golden/TestService.java.txt
index 4de84cd18..7fd62e344 100644
--- a/compiler/src/test/golden/TestService.java.txt
+++ b/compiler/src/test/golden/TestService.java.txt
@@ -107,7 +107,7 @@ public final class TestServiceGrpc {
}
/**
- * Creates a new ListenableFuture-style stub that supports unary and streaming output calls on the service
+ * Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static TestServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
diff --git a/compiler/src/testLite/golden/TestService.java.txt b/compiler/src/testLite/golden/TestService.java.txt
index 57c5dd0be..7ddcfe278 100644
--- a/compiler/src/testLite/golden/TestService.java.txt
+++ b/compiler/src/testLite/golden/TestService.java.txt
@@ -107,7 +107,7 @@ public final class TestServiceGrpc {
}
/**
- * Creates a new ListenableFuture-style stub that supports unary and streaming output calls on the service
+ * Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static TestServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
diff --git a/compiler/src/testNano/golden/TestService.java.txt b/compiler/src/testNano/golden/TestService.java.txt
index 11df28fa0..9453264de 100644
--- a/compiler/src/testNano/golden/TestService.java.txt
+++ b/compiler/src/testNano/golden/TestService.java.txt
@@ -170,7 +170,7 @@ public final class TestServiceGrpc {
}
/**
- * Creates a new ListenableFuture-style stub that supports unary and streaming output calls on the service
+ * Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static TestServiceFutureStub newFutureStub(
io.grpc.Channel channel) {