From 1ababd3570825ab8bb1ecd471009a488fa95a7dd Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Thu, 1 Jun 2017 10:30:16 -0700 Subject: [PATCH] Java: Removing bad curly in sample code (#1314) --- .../com/google/api/codegen/java/method_sample.snip | 6 +++--- .../api/codegen/testdata/java_main_library.baseline | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/resources/com/google/api/codegen/java/method_sample.snip b/src/main/resources/com/google/api/codegen/java/method_sample.snip index 83cacb5ab3..d238f212f4 100644 --- a/src/main/resources/com/google/api/codegen/java/method_sample.snip +++ b/src/main/resources/com/google/api/codegen/java/method_sample.snip @@ -92,7 +92,7 @@ @private bidiStreamingCallableSampleCode(apiMethod) {@responseObserver(apiMethod)} ApiStreamObserver requestObserver = - {@apiMethod.apiVariableName}.{@apiMethod.name}().bidiStreamingCall(responseObserver)}); + {@apiMethod.apiVariableName}.{@apiMethod.name}().bidiStreamingCall(responseObserver)); {@initCode(apiMethod.initCode)} requestObserver.onNext(request); @@ -104,13 +104,13 @@ {@initCode(apiMethod.initCode)} {@apiMethod.apiVariableName}.{@apiMethod.name}().serverStreamingCall(\ - {@sampleMethodCallArgList(apiMethod.initCode.fieldSettings)}, responseObserver)}); + {@sampleMethodCallArgList(apiMethod.initCode.fieldSettings)}, responseObserver)); @end @private clientStreamingCallableSampleCode(apiMethod) {@responseObserver(apiMethod)} ApiStreamObserver requestObserver = - {@apiMethod.apiVariableName}.{@apiMethod.name}().clientStreamingCall(responseObserver)}); + {@apiMethod.apiVariableName}.{@apiMethod.name}().clientStreamingCall(responseObserver)); {@initCode(apiMethod.initCode)} requestObserver.onNext(request); diff --git a/src/test/java/com/google/api/codegen/testdata/java_main_library.baseline b/src/test/java/com/google/api/codegen/testdata/java_main_library.baseline index 22f0be044a..2002fae96f 100644 --- a/src/test/java/com/google/api/codegen/testdata/java_main_library.baseline +++ b/src/test/java/com/google/api/codegen/testdata/java_main_library.baseline @@ -1793,7 +1793,7 @@ public class LibraryClient implements AutoCloseable { * * StreamShelvesRequest request = StreamShelvesRequest.newBuilder().build(); * - * libraryClient.streamShelvesCallable().serverStreamingCall(request, responseObserver)}); + * libraryClient.streamShelvesCallable().serverStreamingCall(request, responseObserver)); * } * */ @@ -1832,7 +1832,7 @@ public class LibraryClient implements AutoCloseable { * .setName(name) * .build(); * - * libraryClient.streamBooksCallable().serverStreamingCall(request, responseObserver)}); + * libraryClient.streamBooksCallable().serverStreamingCall(request, responseObserver)); * } * */ @@ -1866,7 +1866,7 @@ public class LibraryClient implements AutoCloseable { * } * }; * ApiStreamObserver<StreamingRecognizeRequest> requestObserver = - * libraryClient.discussBookCallable().bidiStreamingCall(responseObserver)}); + * libraryClient.discussBookCallable().bidiStreamingCall(responseObserver)); * * String name = ""; * DiscussBookRequest request = DiscussBookRequest.newBuilder() @@ -1906,7 +1906,7 @@ public class LibraryClient implements AutoCloseable { * } * }; * ApiStreamObserver<StreamingRecognizeRequest> requestObserver = - * libraryClient.monologAboutBookCallable().clientStreamingCall(responseObserver)}); + * libraryClient.monologAboutBookCallable().clientStreamingCall(responseObserver)); * * String name = ""; * DiscussBookRequest request = DiscussBookRequest.newBuilder()