Bump odlparent dependency to 2.0.0
[bgpcep.git] / testtool-util / src / main / java / org / opendaylight / protocol / util / InetSocketAddressUtil.java
index 94a67aff965bb2186090ab07e1d4c925ae048c8a..6a91adafdb662c7251d126817976ba7d27b119d9 100644 (file)
@@ -39,9 +39,9 @@ public final class InetSocketAddressUtil {
     public static InetSocketAddress getInetSocketAddress(final String hostPortString, final Integer defaultPort) {
         final HostAndPort hostAndPort = HostAndPort.fromString(hostPortString);
         if (defaultPort != null) {
-            return new InetSocketAddress(hostAndPort.getHostText(), hostAndPort.getPortOrDefault(defaultPort));
+            return new InetSocketAddress(hostAndPort.getHost(), hostAndPort.getPortOrDefault(defaultPort));
         }
-        return new InetSocketAddress(hostAndPort.getHostText(), hostAndPort.getPort());
+        return new InetSocketAddress(hostAndPort.getHost(), hostAndPort.getPort());
     }
 
     public static InetSocketAddress getRandomLoopbackInetSocketAddress(final int port) {