From 8c4f05fff7e41debdda08c9132e84c602d1b87cb Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Wed, 18 Jul 2018 19:10:19 +0200 Subject: [PATCH] Use union's stringValue() With the union codegen improvement we can use stringValue() to directly bind to generated code. JIRA: MDSAL-364 Change-Id: Ic210e2a86831ddc5b78601928cc02ac8e32cbbe5 Signed-off-by: Robert Varga --- .../netconf/sal/restconf/impl/RestconfProviderImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/restconf/impl/RestconfProviderImpl.java b/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/restconf/impl/RestconfProviderImpl.java index 42c5d55e1d..a78b9cc285 100644 --- a/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/restconf/impl/RestconfProviderImpl.java +++ b/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/restconf/impl/RestconfProviderImpl.java @@ -20,7 +20,6 @@ import org.opendaylight.netconf.sal.restconf.impl.jmx.Put; import org.opendaylight.netconf.sal.restconf.impl.jmx.RestConnectorRuntimeMXBean; import org.opendaylight.netconf.sal.restconf.impl.jmx.Rpcs; import org.opendaylight.netconf.sal.streams.websockets.WebSocketServer; -import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IetfInetUtil; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber; @@ -41,7 +40,7 @@ public class RestconfProviderImpl extends AbstractMXBean public void start() { this.webSocketServerThread = new Thread(WebSocketServer.createInstance( - IetfInetUtil.INSTANCE.stringForIpAddress(websocketAddress), websocketPort.getValue())); + websocketAddress.stringValue(), websocketPort.getValue())); this.webSocketServerThread.setName("Web socket server on port " + websocketPort); this.webSocketServerThread.start(); -- 2.36.6