Skip to content

Commit 5d62f6a

Browse files
committed
gRpc: Remove non supported @generated annotation for Java 9
Fixes: [1]. [1] grpc/grpc-java#3633 Change-Id: I07ebacaa400022f6ff3e2396cf236e93bef12554
1 parent a5a0459 commit 5d62f6a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

third_party/grpc/compiler/src/java_plugin/cpp/java_generator.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1069,9 +1069,8 @@ static void PrintService(const ServiceDescriptor* service,
10691069
GrpcWriteServiceDocComment(p, service);
10701070
p->Print(
10711071
*vars,
1072-
"@$Generated$(\n"
1073-
" value = \"by gRPC proto compiler$grpc_version$\",\n"
1074-
" comments = \"Source: $file_name$\")\n"
1072+
"// Generated by gRPC proto compiler$grpc_version$\n"
1073+
"// Source: $file_name$\n"
10751074
"public final class $service_class_name$ {\n\n");
10761075
p->Indent();
10771076
p->Print(
@@ -1203,7 +1202,6 @@ void GenerateService(const ServiceDescriptor* service,
12031202
vars["NanoUtils"] = "io.grpc.protobuf.nano.NanoUtils";
12041203
vars["StreamObserver"] = "io.grpc.stub.StreamObserver";
12051204
vars["Iterator"] = "java.util.Iterator";
1206-
vars["Generated"] = "javax.annotation.Generated";
12071205
vars["ListenableFuture"] =
12081206
"com.google.common.util.concurrent.ListenableFuture";
12091207
vars["ExperimentalApi"] = "io.grpc.ExperimentalApi";

0 commit comments

Comments
 (0)