From 668e31ed66398d6d2cb54c87bb08c8faacf95ba0 Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 26 Apr 2018 02:45:40 +0900 Subject: [PATCH] ing --- .../commons/rpc/protocol/grpc/GRPCServerRequestCodec.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/loafle/commons/rpc/protocol/grpc/GRPCServerRequestCodec.java b/src/main/java/com/loafle/commons/rpc/protocol/grpc/GRPCServerRequestCodec.java index 601d205..99d524d 100644 --- a/src/main/java/com/loafle/commons/rpc/protocol/grpc/GRPCServerRequestCodec.java +++ b/src/main/java/com/loafle/commons/rpc/protocol/grpc/GRPCServerRequestCodec.java @@ -48,6 +48,11 @@ class GRPCServerRequestCodec implements RPCRegistryCodec { Type paramType = paramTypes[i]; String param = this.params.get(i).toStringUtf8(); + if (paramType.equals(String.class)) { + result[i] = param; + continue; + } + result[i] = this.gson.fromJson(param, paramType); }