/guava/guava/src/com/google/common/net/HostSpecifier.java
Preconditions.checkArgument ( !parsedHost.hasPort ( ) ) ;
private final String canonicalForm; private HostSpecifier(String canonicalForm) { this.canonicalForm = canonicalForm; } public static HostSpecifier fromValid(String specifier) { HostAndPort parsedHost = HostAndPort.fromString(specifier); <extra_id_0> String host = parsedHost.getHost(); InetAddress addr = null; try { addr = InetAddresses.forString(host); } catch (IllegalArgumentException e) { }