@Test void parseAddress_nullArgument() { try { Address.parseAddress(null); } catch (NullPointerException e) { assertEquals("address is marked non-null but is null", e.getMessage()); } catch (SocketEndpointAddressException e) { fail(); } }
public static URI parseAddress(@NonNull final String address) throws SocketEndpointAddressException { val parsedAddress = parseUri(address); val scheme = getScheme(parsedAddress); if (scheme == UNIX_SCHEME) { validateUnixAddress(parsedAddress); } else { validateTcpAddress(parsedAddress); } return parsedAddress; }
Address { public static URI parseAddress(@NonNull final String address) throws SocketEndpointAddressException { val parsedAddress = parseUri(address); val scheme = getScheme(parsedAddress); if (scheme == UNIX_SCHEME) { validateUnixAddress(parsedAddress); } else { validateTcpAddress(parsedAddress); } return parsedAddress; } }
Address { public static URI parseAddress(@NonNull final String address) throws SocketEndpointAddressException { val parsedAddress = parseUri(address); val scheme = getScheme(parsedAddress); if (scheme == UNIX_SCHEME) { validateUnixAddress(parsedAddress); } else { validateTcpAddress(parsedAddress); } return parsedAddress; } private  Address(); }
Address { public static URI parseAddress(@NonNull final String address) throws SocketEndpointAddressException { val parsedAddress = parseUri(address); val scheme = getScheme(parsedAddress); if (scheme == UNIX_SCHEME) { validateUnixAddress(parsedAddress); } else { validateTcpAddress(parsedAddress); } return parsedAddress; } private  Address(); static String getDefaultAddress(); static URI parseAddress(@NonNull final String address); }
Address { public static URI parseAddress(@NonNull final String address) throws SocketEndpointAddressException { val parsedAddress = parseUri(address); val scheme = getScheme(parsedAddress); if (scheme == UNIX_SCHEME) { validateUnixAddress(parsedAddress); } else { validateTcpAddress(parsedAddress); } return parsedAddress; } private  Address(); static String getDefaultAddress(); static URI parseAddress(@NonNull final String address); static final String SOCKET_ENV_VARIABLE; }