}
}
public static ClientBuilder url(URL url) {
return new ClientBuilder(url);
}
<BUG>private ClientBuilder(URL url) {
int port = url.getPort();

if (port < 0) {

port = url.getDefaultPort();
</BUG>
}

}
}
public static ClientBuilder url(URL url) {
return new ClientBuilder(url);
}
private ClientBuilder(URL url) {
String urlProtocol = url.getProtocol();
String urlHost = url.getHost();
int urlPort = url.getPort();
if (urlPort < 0) {
urlPort = url.getDefaultPort();
}
