ing
This commit is contained in:
		
							parent
							
								
									6d54e4e823
								
							
						
					
					
						commit
						17dd51b7c1
					
				@ -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));
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user