DATAES-776 - Adapt RestClients class to change in InetSocketAddress class in JDK14.

This commit is contained in:
Peter-Josef Meisch 2020-04-30 17:47:11 +02:00
parent f3e83bf4ae
commit a69658dc8b

View File

@ -135,7 +135,8 @@ public final class RestClients {
}
private static List<String> formattedHosts(List<InetSocketAddress> hosts, boolean useSsl) {
return hosts.stream().map(it -> (useSsl ? "https" : "http") + "://" + it).collect(Collectors.toList());
return hosts.stream().map(it -> (useSsl ? "https" : "http") + "://" + it.getHostString() + ':' + it.getPort())
.collect(Collectors.toList());
}
/**