Skip to content

Commit

Permalink
use getter instead of field access
Browse files Browse the repository at this point in the history
  • Loading branch information
ikhoon committed Jun 9, 2023
1 parent 7396066 commit c2d1dd3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -981,9 +981,9 @@ public GrpcService build() {
if (grpcHealthCheckService != null) {
registryBuilder.addService(grpcHealthCheckService.bindService(), null, ImmutableList.of());
}
if (interceptors != null) {
final ImmutableList<ServerInterceptor> interceptors = interceptors().build();
if (!interceptors.isEmpty()) {
final HandlerRegistry.Builder newRegistryBuilder = new HandlerRegistry.Builder();
final ImmutableList<ServerInterceptor> interceptors = this.interceptors.build();
for (Entry entry : registryBuilder.entries()) {
final MethodDescriptor<?, ?> methodDescriptor = entry.method();
final ServerServiceDefinition intercepted =
Expand Down

0 comments on commit c2d1dd3

Please sign in to comment.