From dd6a7438d0b312c6cea18bf44ca2f86e55b5b943 Mon Sep 17 00:00:00 2001 From: HuabingZhao Date: Fri, 19 Jan 2018 08:24:26 +0000 Subject: Fix Nexus IQ security issue Update dependencies to latest versions. Issue-ID: MSB-131 Change-Id: I3659a189b3b7b898970ae6efe8bb8e6a61804046 Signed-off-by: HuabingZhao --- .../src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sdclient/discovery-service/src/main') diff --git a/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java b/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java index 51b6449..a8851fc 100644 --- a/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java +++ b/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java @@ -66,6 +66,8 @@ public class Consul { public boolean apply(final Class clazz) { return JacksonJaxbJsonProvider.class.isAssignableFrom(clazz); } + + }).first().isPresent()) { builder.register(JacksonJaxbJsonProvider.class); } @@ -197,7 +199,7 @@ public class Consul { */ public Builder withHostAndPort(HostAndPort hostAndPort) { try { - this.url = new URL("http", hostAndPort.getHostText(), hostAndPort.getPort(), ""); + this.url = new URL("http", hostAndPort.getHost(), hostAndPort.getPort(), ""); } catch (MalformedURLException e) { throw new RuntimeException(e); } -- cgit 1.2.3-korg