From 17dd51b7c1a6496f65cecf3201dfad4ac1fcc001 Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 25 Apr 2018 21:41:22 +0900 Subject: [PATCH] ing --- .../java/com/loafle/commons/rpc/registry/RPCRegistry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/loafle/commons/rpc/registry/RPCRegistry.java b/src/main/java/com/loafle/commons/rpc/registry/RPCRegistry.java index 4bceed0..c16662f 100644 --- a/src/main/java/com/loafle/commons/rpc/registry/RPCRegistry.java +++ b/src/main/java/com/loafle/commons/rpc/registry/RPCRegistry.java @@ -52,7 +52,7 @@ public class RPCRegistry implements RPCInvoker { @Override public boolean hasMethod(String method) { - String[] sm = method.split("."); + String[] sm = method.split("\\."); if (null == sm || 2 != sm.length) { return false; @@ -71,7 +71,7 @@ public class RPCRegistry implements RPCInvoker { public Object invoke(RPCRegistryCodec codec) throws RPCException { String method = codec.method(); - String[] sm = method.split("."); + String[] sm = method.split("\\."); if (null == sm || 2 != sm.length) { throw new RPCException(String.format("method[%s] is not valid", method));