Details
-
Bug
-
Status: Resolved
-
P3
-
Resolution: Fixed
-
2.2.0
-
None
Description
public Read withEndpoint(String host, int port) { checkArgument(host != null, "host can not be null"); checkArgument(port > 0, "port can not be negative or 0"); return builder() .setConnectionConfiguration(connectionConfiguration().withHost(host)) .setConnectionConfiguration(connectionConfiguration().withPort(port)) .build(); }
think because setConnectionConfiguration sets the object back into the builder, the second set was overwriting the effects of setting the host.