diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ServerInterceptorUtil.java b/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ServerInterceptorUtil.java index dca04e6f2..17abf4c69 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ServerInterceptorUtil.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ServerInterceptorUtil.java @@ -15,8 +15,6 @@ public class ServerInterceptorUtil { @SuppressWarnings("rawtypes") private static final ServerCall.Listener NO_OP_LISTENER = new ServerCall.Listener<>() {}; - private static final Metadata EMPTY_TRAILERS = new Metadata(); - private ServerInterceptorUtil() { } @@ -32,7 +30,7 @@ public class ServerInterceptorUtil { * @param the type of response object returned by the server call */ public static ServerCall.Listener closeWithStatus(final ServerCall call, final Status status) { - call.close(status, EMPTY_TRAILERS); + call.close(status, new Metadata()); //noinspection unchecked return NO_OP_LISTENER;