Searched refs:closeBracketIndex (Results 1 – 1 of 1) sorted by relevance
215 int closeBracketIndex = 0; in getHostAndPortFromBracketedHost() local220 closeBracketIndex = hostPortString.lastIndexOf(']'); in getHostAndPortFromBracketedHost()221 checkArgument(colonIndex > -1 && closeBracketIndex > colonIndex, in getHostAndPortFromBracketedHost()224 String host = hostPortString.substring(1, closeBracketIndex); in getHostAndPortFromBracketedHost()225 if (closeBracketIndex + 1 == hostPortString.length()) { in getHostAndPortFromBracketedHost()228 checkArgument(hostPortString.charAt(closeBracketIndex + 1) == ':', in getHostAndPortFromBracketedHost()230 for (int i = closeBracketIndex + 2; i < hostPortString.length(); ++i) { in getHostAndPortFromBracketedHost()234 return new String[] { host, hostPortString.substring(closeBracketIndex + 2) }; in getHostAndPortFromBracketedHost()