compiler: add some missing final modifiers on generated code

This commit is contained in:
Carl Mastrangelo 2017-02-10 10:16:43 -08:00 committed by GitHub
parent cc000be12d
commit 700abb32af
16 changed files with 48 additions and 48 deletions

View File

@ -20,7 +20,7 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.2.0-SNAPSHOT)",
comments = "Source: services.proto")
public class BenchmarkServiceGrpc {
public final class BenchmarkServiceGrpc {
private BenchmarkServiceGrpc() {}
@ -222,7 +222,7 @@ public class BenchmarkServiceGrpc {
private static final int METHODID_UNARY_CALL = 0;
private static final int METHODID_STREAMING_CALL = 1;
private static class MethodHandlers<Req, Resp> implements
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
@ -230,7 +230,7 @@ public class BenchmarkServiceGrpc {
private final BenchmarkServiceImplBase serviceImpl;
private final int methodId;
public MethodHandlers(BenchmarkServiceImplBase serviceImpl, int methodId) {
MethodHandlers(BenchmarkServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}

View File

@ -20,7 +20,7 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.2.0-SNAPSHOT)",
comments = "Source: services.proto")
public class WorkerServiceGrpc {
public final class WorkerServiceGrpc {
private WorkerServiceGrpc() {}
@ -333,7 +333,7 @@ public class WorkerServiceGrpc {
private static final int METHODID_RUN_SERVER = 2;
private static final int METHODID_RUN_CLIENT = 3;
private static class MethodHandlers<Req, Resp> implements
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
@ -341,7 +341,7 @@ public class WorkerServiceGrpc {
private final WorkerServiceImplBase serviceImpl;
private final int methodId;
public MethodHandlers(WorkerServiceImplBase serviceImpl, int methodId) {
MethodHandlers(WorkerServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}

View File

@ -793,7 +793,7 @@ static void PrintMethodHandlerClass(const ServiceDescriptor* service,
}
p->Print(
*vars,
"private static class MethodHandlers<Req, Resp> implements\n"
"private static final class MethodHandlers<Req, Resp> implements\n"
" io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,\n"
" io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,\n"
" io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,\n"
@ -801,7 +801,7 @@ static void PrintMethodHandlerClass(const ServiceDescriptor* service,
" private final $service_name$ serviceImpl;\n"
" private final int methodId;\n"
"\n"
" public MethodHandlers($service_name$ serviceImpl, int methodId) {\n"
" MethodHandlers($service_name$ serviceImpl, int methodId) {\n"
" this.serviceImpl = serviceImpl;\n"
" this.methodId = methodId;\n"
" }\n\n");
@ -1035,7 +1035,7 @@ static void PrintService(const ServiceDescriptor* service,
"@$Generated$(\n"
" value = \"by gRPC proto compiler$grpc_version$\",\n"
" comments = \"Source: $file_name$\")\n"
"public class $service_class_name$ {\n\n");
"public final class $service_class_name$ {\n\n");
p->Indent();
p->Print(
*vars,

View File

@ -23,7 +23,7 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.2.0-SNAPSHOT)",
comments = "Source: test.proto")
public class TestServiceGrpc {
public final class TestServiceGrpc {
private TestServiceGrpc() {}
@ -375,7 +375,7 @@ public class TestServiceGrpc {
private static final int METHODID_FULL_BIDI_CALL = 3;
private static final int METHODID_HALF_BIDI_CALL = 4;
private static class MethodHandlers<Req, Resp> implements
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
@ -383,7 +383,7 @@ public class TestServiceGrpc {
private final TestServiceImplBase serviceImpl;
private final int methodId;
public MethodHandlers(TestServiceImplBase serviceImpl, int methodId) {
MethodHandlers(TestServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}

View File

@ -23,7 +23,7 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.2.0-SNAPSHOT)",
comments = "Source: test.proto")
public class TestServiceGrpc {
public final class TestServiceGrpc {
private TestServiceGrpc() {}
@ -375,7 +375,7 @@ public class TestServiceGrpc {
private static final int METHODID_FULL_BIDI_CALL = 3;
private static final int METHODID_HALF_BIDI_CALL = 4;
private static class MethodHandlers<Req, Resp> implements
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
@ -383,7 +383,7 @@ public class TestServiceGrpc {
private final TestServiceImplBase serviceImpl;
private final int methodId;
public MethodHandlers(TestServiceImplBase serviceImpl, int methodId) {
MethodHandlers(TestServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}

View File

@ -25,7 +25,7 @@ import java.io.IOException;
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.2.0-SNAPSHOT)",
comments = "Source: test.proto")
public class TestServiceGrpc {
public final class TestServiceGrpc {
private TestServiceGrpc() {}
@ -453,7 +453,7 @@ public class TestServiceGrpc {
private static final int METHODID_FULL_BIDI_CALL = 3;
private static final int METHODID_HALF_BIDI_CALL = 4;
private static class MethodHandlers<Req, Resp> implements
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
@ -461,7 +461,7 @@ public class TestServiceGrpc {
private final TestServiceImplBase serviceImpl;
private final int methodId;
public MethodHandlers(TestServiceImplBase serviceImpl, int methodId) {
MethodHandlers(TestServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}

View File

@ -20,7 +20,7 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.2.0-SNAPSHOT)",
comments = "Source: load_balancer.proto")
public class LoadBalancerGrpc {
public final class LoadBalancerGrpc {
private LoadBalancerGrpc() {}
@ -157,7 +157,7 @@ public class LoadBalancerGrpc {
private static final int METHODID_BALANCE_LOAD = 0;
private static class MethodHandlers<Req, Resp> implements
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
@ -165,7 +165,7 @@ public class LoadBalancerGrpc {
private final LoadBalancerImplBase serviceImpl;
private final int methodId;
public MethodHandlers(LoadBalancerImplBase serviceImpl, int methodId) {
MethodHandlers(LoadBalancerImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}

View File

@ -20,7 +20,7 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.2.0-SNAPSHOT)",
comments = "Source: health.proto")
public class HealthGrpc {
public final class HealthGrpc {
private HealthGrpc() {}
@ -166,7 +166,7 @@ public class HealthGrpc {
private static final int METHODID_CHECK = 0;
private static class MethodHandlers<Req, Resp> implements
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
@ -174,7 +174,7 @@ public class HealthGrpc {
private final HealthImplBase serviceImpl;
private final int methodId;
public MethodHandlers(HealthImplBase serviceImpl, int methodId) {
MethodHandlers(HealthImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}

View File

@ -20,7 +20,7 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.2.0-SNAPSHOT)",
comments = "Source: io/grpc/reflection/v1alpha/reflection.proto")
public class ServerReflectionGrpc {
public final class ServerReflectionGrpc {
private ServerReflectionGrpc() {}
@ -159,7 +159,7 @@ public class ServerReflectionGrpc {
private static final int METHODID_SERVER_REFLECTION_INFO = 0;
private static class MethodHandlers<Req, Resp> implements
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
@ -167,7 +167,7 @@ public class ServerReflectionGrpc {
private final ServerReflectionImplBase serviceImpl;
private final int methodId;
public MethodHandlers(ServerReflectionImplBase serviceImpl, int methodId) {
MethodHandlers(ServerReflectionImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}

View File

@ -23,7 +23,7 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.2.0-SNAPSHOT)",
comments = "Source: io/grpc/reflection/testing/dynamic_reflection_test.proto")
public class AnotherDynamicServiceGrpc {
public final class AnotherDynamicServiceGrpc {
private AnotherDynamicServiceGrpc() {}
@ -193,7 +193,7 @@ public class AnotherDynamicServiceGrpc {
private static final int METHODID_METHOD = 0;
private static class MethodHandlers<Req, Resp> implements
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
@ -201,7 +201,7 @@ public class AnotherDynamicServiceGrpc {
private final AnotherDynamicServiceImplBase serviceImpl;
private final int methodId;
public MethodHandlers(AnotherDynamicServiceImplBase serviceImpl, int methodId) {
MethodHandlers(AnotherDynamicServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}

View File

@ -23,7 +23,7 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.2.0-SNAPSHOT)",
comments = "Source: io/grpc/reflection/testing/dynamic_reflection_test.proto")
public class DynamicServiceGrpc {
public final class DynamicServiceGrpc {
private DynamicServiceGrpc() {}
@ -193,7 +193,7 @@ public class DynamicServiceGrpc {
private static final int METHODID_METHOD = 0;
private static class MethodHandlers<Req, Resp> implements
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
@ -201,7 +201,7 @@ public class DynamicServiceGrpc {
private final DynamicServiceImplBase serviceImpl;
private final int methodId;
public MethodHandlers(DynamicServiceImplBase serviceImpl, int methodId) {
MethodHandlers(DynamicServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}

View File

@ -20,7 +20,7 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.2.0-SNAPSHOT)",
comments = "Source: io/grpc/reflection/testing/reflection_test.proto")
public class ReflectableServiceGrpc {
public final class ReflectableServiceGrpc {
private ReflectableServiceGrpc() {}
@ -166,7 +166,7 @@ public class ReflectableServiceGrpc {
private static final int METHODID_METHOD = 0;
private static class MethodHandlers<Req, Resp> implements
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
@ -174,7 +174,7 @@ public class ReflectableServiceGrpc {
private final ReflectableServiceImplBase serviceImpl;
private final int methodId;
public MethodHandlers(ReflectableServiceImplBase serviceImpl, int methodId) {
MethodHandlers(ReflectableServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}

View File

@ -20,7 +20,7 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.2.0-SNAPSHOT)",
comments = "Source: io/grpc/testing/integration/metrics.proto")
public class MetricsServiceGrpc {
public final class MetricsServiceGrpc {
private MetricsServiceGrpc() {}
@ -230,7 +230,7 @@ public class MetricsServiceGrpc {
private static final int METHODID_GET_ALL_GAUGES = 0;
private static final int METHODID_GET_GAUGE = 1;
private static class MethodHandlers<Req, Resp> implements
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
@ -238,7 +238,7 @@ public class MetricsServiceGrpc {
private final MetricsServiceImplBase serviceImpl;
private final int methodId;
public MethodHandlers(MetricsServiceImplBase serviceImpl, int methodId) {
MethodHandlers(MetricsServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}

View File

@ -23,7 +23,7 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.2.0-SNAPSHOT)",
comments = "Source: io/grpc/testing/integration/test.proto")
public class ReconnectServiceGrpc {
public final class ReconnectServiceGrpc {
private ReconnectServiceGrpc() {}
@ -228,7 +228,7 @@ public class ReconnectServiceGrpc {
private static final int METHODID_START = 0;
private static final int METHODID_STOP = 1;
private static class MethodHandlers<Req, Resp> implements
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
@ -236,7 +236,7 @@ public class ReconnectServiceGrpc {
private final ReconnectServiceImplBase serviceImpl;
private final int methodId;
public MethodHandlers(ReconnectServiceImplBase serviceImpl, int methodId) {
MethodHandlers(ReconnectServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}

View File

@ -24,7 +24,7 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.2.0-SNAPSHOT)",
comments = "Source: io/grpc/testing/integration/test.proto")
public class TestServiceGrpc {
public final class TestServiceGrpc {
private TestServiceGrpc() {}
@ -498,7 +498,7 @@ public class TestServiceGrpc {
private static final int METHODID_FULL_DUPLEX_CALL = 5;
private static final int METHODID_HALF_DUPLEX_CALL = 6;
private static class MethodHandlers<Req, Resp> implements
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
@ -506,7 +506,7 @@ public class TestServiceGrpc {
private final TestServiceImplBase serviceImpl;
private final int methodId;
public MethodHandlers(TestServiceImplBase serviceImpl, int methodId) {
MethodHandlers(TestServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}

View File

@ -24,7 +24,7 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.2.0-SNAPSHOT)",
comments = "Source: io/grpc/testing/integration/test.proto")
public class UnimplementedServiceGrpc {
public final class UnimplementedServiceGrpc {
private UnimplementedServiceGrpc() {}
@ -198,7 +198,7 @@ public class UnimplementedServiceGrpc {
private static final int METHODID_UNIMPLEMENTED_CALL = 0;
private static class MethodHandlers<Req, Resp> implements
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
@ -206,7 +206,7 @@ public class UnimplementedServiceGrpc {
private final UnimplementedServiceImplBase serviceImpl;
private final int methodId;
public MethodHandlers(UnimplementedServiceImplBase serviceImpl, int methodId) {
MethodHandlers(UnimplementedServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}