core,services: fix lints (#4504)

- Type parameters must be upper camel case
- constant case field must be final
This commit is contained in:
zpencer 2018-05-24 11:12:30 -07:00 committed by GitHub
parent 8e9d4cbe5c
commit ff9aa39bb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 8 deletions

View File

@ -23,10 +23,10 @@ import io.grpc.MethodDescriptor.Marshaller;
*/
@Internal
public final class InternalClientInterceptors {
public static <WReqT, WRespT> ClientInterceptor wrapClientInterceptor(
public static <ReqT, RespT> ClientInterceptor wrapClientInterceptor(
final ClientInterceptor interceptor,
final Marshaller<WReqT> reqMarshaller,
final Marshaller<WRespT> respMarshaller) {
final Marshaller<ReqT> reqMarshaller,
final Marshaller<RespT> respMarshaller) {
return ClientInterceptors.wrapClientInterceptor(interceptor, reqMarshaller, respMarshaller);
}
}

View File

@ -26,14 +26,15 @@ public final class InternalServerInterceptors {
return ServerInterceptors.InterceptCallHandler.create(interceptor, callHandler);
}
public static <OReqT, ORespT, WReqT, WRespT> ServerMethodDefinition<WReqT, WRespT> wrapMethod(
final ServerMethodDefinition<OReqT, ORespT> definition,
final MethodDescriptor<WReqT, WRespT> wrappedMethod) {
public static <OrigReqT, OrigRespT, WrapReqT, WrapRespT>
ServerMethodDefinition<WrapReqT, WrapRespT> wrapMethod(
final ServerMethodDefinition<OrigReqT, OrigRespT> definition,
final MethodDescriptor<WrapReqT, WrapRespT> wrappedMethod) {
return ServerInterceptors.wrapMethod(definition, wrappedMethod);
}
public static <ReqT, RespT> ServerCallHandler<ReqT, RespT> interceptCallHandlerCreate(
ServerInterceptor interceptor, ServerCallHandler<ReqT, RespT> callHandler) {
ServerInterceptor interceptor, ServerCallHandler<ReqT, RespT> callHandler) {
return ServerInterceptors.InterceptCallHandler.create(interceptor, callHandler);
}

View File

@ -406,7 +406,7 @@ public class BinaryLogProviderTest {
private static class StringMarshaller implements MethodDescriptor.Marshaller<String> {
public static StringMarshaller INSTANCE = new StringMarshaller();
public static final StringMarshaller INSTANCE = new StringMarshaller();
@Override
public InputStream stream(String value) {