This commit is contained in:
crusader 2018-04-25 21:41:22 +09:00
parent 6d54e4e823
commit 17dd51b7c1

View File

@ -52,7 +52,7 @@ public class RPCRegistry implements RPCInvoker {
@Override @Override
public boolean hasMethod(String method) { public boolean hasMethod(String method) {
String[] sm = method.split("."); String[] sm = method.split("\\.");
if (null == sm || 2 != sm.length) { if (null == sm || 2 != sm.length) {
return false; return false;
@ -71,7 +71,7 @@ public class RPCRegistry implements RPCInvoker {
public Object invoke(RPCRegistryCodec codec) throws RPCException { public Object invoke(RPCRegistryCodec codec) throws RPCException {
String method = codec.method(); String method = codec.method();
String[] sm = method.split("."); String[] sm = method.split("\\.");
if (null == sm || 2 != sm.length) { if (null == sm || 2 != sm.length) {
throw new RPCException(String.format("method[%s] is not valid", method)); throw new RPCException(String.format("method[%s] is not valid", method));