From 7f85aa44bc92349747a2dfb39adc7a6ad57526c4 Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Thu, 8 Mar 2018 21:03:23 +0100 Subject: [PATCH] gRpc: Remove non supported @Generated annotation for Java 9 Fixes: [1]. [1] https://github.com/grpc/grpc-java/issues/3633 Change-Id: I07ebacaa400022f6ff3e2396cf236e93bef12554 --- .../grpc/compiler/src/java_plugin/cpp/java_generator.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/third_party/grpc/compiler/src/java_plugin/cpp/java_generator.cpp b/third_party/grpc/compiler/src/java_plugin/cpp/java_generator.cpp index 7cb01238ac956c..cc7c19d3401a16 100644 --- a/third_party/grpc/compiler/src/java_plugin/cpp/java_generator.cpp +++ b/third_party/grpc/compiler/src/java_plugin/cpp/java_generator.cpp @@ -1069,9 +1069,8 @@ static void PrintService(const ServiceDescriptor* service, GrpcWriteServiceDocComment(p, service); p->Print( *vars, - "@$Generated$(\n" - " value = \"by gRPC proto compiler$grpc_version$\",\n" - " comments = \"Source: $file_name$\")\n" + "// Generated by gRPC proto compiler$grpc_version$\n" + "// Source: $file_name$\n" "public final class $service_class_name$ {\n\n"); p->Indent(); p->Print( @@ -1203,7 +1202,6 @@ void GenerateService(const ServiceDescriptor* service, vars["NanoUtils"] = "io.grpc.protobuf.nano.NanoUtils"; vars["StreamObserver"] = "io.grpc.stub.StreamObserver"; vars["Iterator"] = "java.util.Iterator"; - vars["Generated"] = "javax.annotation.Generated"; vars["ListenableFuture"] = "com.google.common.util.concurrent.ListenableFuture"; vars["ExperimentalApi"] = "io.grpc.ExperimentalApi";