if (uri.getPort() > 0) {
this.port = uri.getPort();
}
}
public JHttpEndpoint(Protocol protocol, String hostname, int port) {
<BUG>Objects.nonNull(protocol);
</BUG>
this.protocol = protocol;
if (org.springframework.util.StringUtils.isEmpty(hostname)) {
throw new IllegalArgumentException(format("hostname must non-empty. Provided value: %s", hostname));

if (uri.getPort() > 0) {
this.port = uri.getPort();
}
}
public JHttpEndpoint(Protocol protocol, String hostname, int port) {
Objects.requireNonNull(protocol);
this.protocol = protocol;
if (org.springframework.util.StringUtils.isEmpty(hostname)) {
throw new IllegalArgumentException(format("hostname must non-empty. Provided value: %s", hostname));
