Update NodeIdentifierWithPredicates construction
[netconf.git] / netconf / sal-netconf-connector / src / main / java / org / opendaylight / netconf / sal / connect / util / RemoteDeviceId.java
index bc30126a528ac5139ebff66acc51905c759fbec5..796ec2f8ba052f4d132e7cf0e1ce96bfce5917b3 100644 (file)
@@ -48,12 +48,12 @@ public final class RemoteDeviceId {
     private RemoteDeviceId(final String name) {
         this.name = Preconditions.checkNotNull(name);
         this.topologyPath = DEFAULT_TOPOLOGY_NODE
-                .node(new NodeIdentifierWithPredicates(Node.QNAME, NODE_ID_QNAME, name));
+                .node(NodeIdentifierWithPredicates.of(Node.QNAME, NODE_ID_QNAME, name));
         this.key = new NodeKey(new NodeId(name));
         this.topologyBindingPath = DEFAULT_TOPOLOGY_IID.child(Node.class, key);
     }
 
-    public RemoteDeviceId(final String name, InetSocketAddress address) {
+    public RemoteDeviceId(final String name, final InetSocketAddress address) {
         this(name);
         this.address = address;
         this.host = buildHost();