/guava/guava/src/com/google/common/net/HostAndPort.java
host = null;
host = hostPortString;
} else { int colonPos = hostPortString.indexOf(':'); if (colonPos >= 0 && hostPortString.indexOf(':', colonPos + 1) == -1) { host = hostPortString.substring(0, colonPos); portString = hostPortString.substring(colonPos + 1); } else { <extra_id_0> hasBracketlessColons = (colonPos >= 0); } } int port = NO_PORT; if (!Strings.isNullOrEmpty(portString)) { checkArgument(