diff --git a/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/BenchmarkServiceGrpc.java b/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/BenchmarkServiceGrpc.java index ce4f6418a8..e617f60a8c 100644 --- a/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/BenchmarkServiceGrpc.java +++ b/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/BenchmarkServiceGrpc.java @@ -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 implements + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, @@ -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; } diff --git a/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/WorkerServiceGrpc.java b/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/WorkerServiceGrpc.java index 3f4af55b4d..9cff56827a 100644 --- a/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/WorkerServiceGrpc.java +++ b/benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/WorkerServiceGrpc.java @@ -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 implements + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, @@ -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; } diff --git a/compiler/src/java_plugin/cpp/java_generator.cpp b/compiler/src/java_plugin/cpp/java_generator.cpp index 09b1571261..8c9e39fb29 100644 --- a/compiler/src/java_plugin/cpp/java_generator.cpp +++ b/compiler/src/java_plugin/cpp/java_generator.cpp @@ -793,7 +793,7 @@ static void PrintMethodHandlerClass(const ServiceDescriptor* service, } p->Print( *vars, - "private static class MethodHandlers implements\n" + "private static final class MethodHandlers implements\n" " io.grpc.stub.ServerCalls.UnaryMethod,\n" " io.grpc.stub.ServerCalls.ServerStreamingMethod,\n" " io.grpc.stub.ServerCalls.ClientStreamingMethod,\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, diff --git a/compiler/src/test/golden/TestService.java.txt b/compiler/src/test/golden/TestService.java.txt index bf24526357..11b45170ed 100644 --- a/compiler/src/test/golden/TestService.java.txt +++ b/compiler/src/test/golden/TestService.java.txt @@ -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 implements + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, @@ -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; } diff --git a/compiler/src/testLite/golden/TestService.java.txt b/compiler/src/testLite/golden/TestService.java.txt index ce6729770f..9be98afa13 100644 --- a/compiler/src/testLite/golden/TestService.java.txt +++ b/compiler/src/testLite/golden/TestService.java.txt @@ -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 implements + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, @@ -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; } diff --git a/compiler/src/testNano/golden/TestService.java.txt b/compiler/src/testNano/golden/TestService.java.txt index cab068902b..8e0d37a497 100644 --- a/compiler/src/testNano/golden/TestService.java.txt +++ b/compiler/src/testNano/golden/TestService.java.txt @@ -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 implements + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, @@ -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; } diff --git a/grpclb/src/generated/main/grpc/io/grpc/grpclb/LoadBalancerGrpc.java b/grpclb/src/generated/main/grpc/io/grpc/grpclb/LoadBalancerGrpc.java index 96d302af84..03c2605420 100644 --- a/grpclb/src/generated/main/grpc/io/grpc/grpclb/LoadBalancerGrpc.java +++ b/grpclb/src/generated/main/grpc/io/grpc/grpclb/LoadBalancerGrpc.java @@ -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 implements + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, @@ -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; } diff --git a/services/src/generated/main/grpc/io/grpc/health/v1/HealthGrpc.java b/services/src/generated/main/grpc/io/grpc/health/v1/HealthGrpc.java index 6b4f8212e7..7b9fb89c81 100644 --- a/services/src/generated/main/grpc/io/grpc/health/v1/HealthGrpc.java +++ b/services/src/generated/main/grpc/io/grpc/health/v1/HealthGrpc.java @@ -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 implements + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, @@ -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; } diff --git a/services/src/generated/main/grpc/io/grpc/reflection/v1alpha/ServerReflectionGrpc.java b/services/src/generated/main/grpc/io/grpc/reflection/v1alpha/ServerReflectionGrpc.java index 3e08d91051..0902eab506 100644 --- a/services/src/generated/main/grpc/io/grpc/reflection/v1alpha/ServerReflectionGrpc.java +++ b/services/src/generated/main/grpc/io/grpc/reflection/v1alpha/ServerReflectionGrpc.java @@ -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 implements + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, @@ -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; } diff --git a/services/src/generated/test/grpc/io/grpc/reflection/testing/AnotherDynamicServiceGrpc.java b/services/src/generated/test/grpc/io/grpc/reflection/testing/AnotherDynamicServiceGrpc.java index 0a48f32b94..7d5f6ec2a7 100644 --- a/services/src/generated/test/grpc/io/grpc/reflection/testing/AnotherDynamicServiceGrpc.java +++ b/services/src/generated/test/grpc/io/grpc/reflection/testing/AnotherDynamicServiceGrpc.java @@ -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 implements + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, @@ -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; } diff --git a/services/src/generated/test/grpc/io/grpc/reflection/testing/DynamicServiceGrpc.java b/services/src/generated/test/grpc/io/grpc/reflection/testing/DynamicServiceGrpc.java index 95703bf047..797417cb44 100644 --- a/services/src/generated/test/grpc/io/grpc/reflection/testing/DynamicServiceGrpc.java +++ b/services/src/generated/test/grpc/io/grpc/reflection/testing/DynamicServiceGrpc.java @@ -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 implements + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, @@ -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; } diff --git a/services/src/generated/test/grpc/io/grpc/reflection/testing/ReflectableServiceGrpc.java b/services/src/generated/test/grpc/io/grpc/reflection/testing/ReflectableServiceGrpc.java index 9f61ad81f0..ab063b3f40 100644 --- a/services/src/generated/test/grpc/io/grpc/reflection/testing/ReflectableServiceGrpc.java +++ b/services/src/generated/test/grpc/io/grpc/reflection/testing/ReflectableServiceGrpc.java @@ -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 implements + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, @@ -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; } diff --git a/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/MetricsServiceGrpc.java b/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/MetricsServiceGrpc.java index ca0bd99c45..f8bc5c4ce8 100644 --- a/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/MetricsServiceGrpc.java +++ b/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/MetricsServiceGrpc.java @@ -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 implements + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, @@ -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; } diff --git a/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/ReconnectServiceGrpc.java b/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/ReconnectServiceGrpc.java index a417996d6f..5610bad7cb 100644 --- a/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/ReconnectServiceGrpc.java +++ b/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/ReconnectServiceGrpc.java @@ -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 implements + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, @@ -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; } diff --git a/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/TestServiceGrpc.java b/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/TestServiceGrpc.java index 3bb7715329..a2c80f3d64 100644 --- a/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/TestServiceGrpc.java +++ b/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/TestServiceGrpc.java @@ -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 implements + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, @@ -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; } diff --git a/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/UnimplementedServiceGrpc.java b/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/UnimplementedServiceGrpc.java index 8f20656f1e..00b76d4cd6 100644 --- a/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/UnimplementedServiceGrpc.java +++ b/testing-proto/src/generated/main/grpc/io/grpc/testing/integration/UnimplementedServiceGrpc.java @@ -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 implements + private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, @@ -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; }