Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Little clean up
-Set constructor parameters on one line
-Add javadoc for 'instance' parameter

[#204]
  • Loading branch information
smcvb committed Dec 5, 2017
commit 5a232a76b91756880de0d2f075446281231bace5
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ public DefaultServiceInstance(String serviceId, String host, int port, boolean s
this.metadata = metadata;
}

public DefaultServiceInstance(String serviceId, String host, int port,
boolean secure) {
this(serviceId, host, port, secure, new LinkedHashMap<String, String>());
public DefaultServiceInstance(String serviceId, String host, int port, boolean secure) {
this(serviceId, host, port, secure, new LinkedHashMap<>());
}

@Override
Expand Down Expand Up @@ -103,7 +102,8 @@ public URI getUri() {

/**
* Create a uri from the given ServiceInstance's host:port
* @param instance
*
* @param instance a {@link ServiceInstance} to create an {@link java.net.URI} out of.
* @return URI of the form (secure)?https:http + "host:port"
*/
public static URI getUri(ServiceInstance instance) {
Expand Down