@Test public void getSimpleMethodName() throws Exception { assertEquals("world", GrpcUtils.getSimpleMethodName("sxp.Hello/world")); }
public static String getSimpleMethodName(String fullMethodName) { Preconditions.checkNotNull(fullMethodName, "fullMethodName"); int index = fullMethodName.indexOf("/"); if (index < 0) { throw new BusinessException("全路径方法名[" + fullMethodName + "]中不含有[/]字符，请检查！"); } return fullMethodName.substring(index + 1); }
GrpcUtils { public static String getSimpleMethodName(String fullMethodName) { Preconditions.checkNotNull(fullMethodName, "fullMethodName"); int index = fullMethodName.indexOf("/"); if (index < 0) { throw new BusinessException("全路径方法名[" + fullMethodName + "]中不含有[/]字符，请检查！"); } return fullMethodName.substring(index + 1); } }
GrpcUtils { public static String getSimpleMethodName(String fullMethodName) { Preconditions.checkNotNull(fullMethodName, "fullMethodName"); int index = fullMethodName.indexOf("/"); if (index < 0) { throw new BusinessException("全路径方法名[" + fullMethodName + "]中不含有[/]字符，请检查！"); } return fullMethodName.substring(index + 1); }  }
GrpcUtils { public static String getSimpleMethodName(String fullMethodName) { Preconditions.checkNotNull(fullMethodName, "fullMethodName"); int index = fullMethodName.indexOf("/"); if (index < 0) { throw new BusinessException("全路径方法名[" + fullMethodName + "]中不含有[/]字符，请检查！"); } return fullMethodName.substring(index + 1); }  static String getInterfaceNameByFullMethodName(String fullMethodName); static String getSimpleMethodName(String fullMethodName); static String getInterfaceNameNoneException(String fullMethodName); }
GrpcUtils { public static String getSimpleMethodName(String fullMethodName) { Preconditions.checkNotNull(fullMethodName, "fullMethodName"); int index = fullMethodName.indexOf("/"); if (index < 0) { throw new BusinessException("全路径方法名[" + fullMethodName + "]中不含有[/]字符，请检查！"); } return fullMethodName.substring(index + 1); }  static String getInterfaceNameByFullMethodName(String fullMethodName); static String getSimpleMethodName(String fullMethodName); static String getInterfaceNameNoneException(String fullMethodName);  }