Should we refactor this to a another method something like 
if (isServiceMatch(provider,service) {
  -- existing code ---
}
public static boolean isServiceMatch( ProviderModel provider,String service) {
   return StringUtils.isEmpty(service) 
              ||provider.getServiceName().equalsIgnoreCase(service)
              ||provider.getServiceName().equalsIgnoreCase(service)
              
||provider.getServiceInterfaceClass().getSimpleName().equalsIgnoreCase(service)
              
||provider.getServiceInterfaceClass().getName().equalsIgnoreCase(service)
}

[ Full content available at: 
https://github.com/apache/incubator-dubbo/pull/3013 ]
This message was relayed via gitbox.apache.org for 
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to