BUG-865: remove YangInstanceIdentifier.toInstance() 63/27163/1
authorRobert Varga <rovarga@cisco.com>
Fri, 18 Sep 2015 13:59:48 +0000 (15:59 +0200)
committerRobert Varga <rovarga@cisco.com>
Fri, 18 Sep 2015 13:59:48 +0000 (15:59 +0200)
This removes the use of a deprecated method.

Change-Id: I46f9a3e3a8c9741fa603aa04e2673a13c6fb5c92
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-dom-xsql/src/main/java/org/opendaylight/controller/md/sal/dom/xsql/XSQLAdapter.java

index 05f65225eaec15755b520bf1f00e44038416e849..91b34b85e51301b876165b8372c0d1903ea58537 100644 (file)
@@ -163,7 +163,7 @@ public class XSQLAdapter extends Thread implements SchemaContextListener {
                 YangInstanceIdentifier instanceIdentifier = YangInstanceIdentifier
                         .builder()
                         .node(XSQLODLUtils.getPath(table.getFirstFromSchemaNodes()).get(0))
                 YangInstanceIdentifier instanceIdentifier = YangInstanceIdentifier
                         .builder()
                         .node(XSQLODLUtils.getPath(table.getFirstFromSchemaNodes()).get(0))
-                        .toInstance();
+                        .build();
                 DOMDataReadTransaction t = this.domDataBroker
                         .newReadOnlyTransaction();
                 Object node = t.read(type,
                 DOMDataReadTransaction t = this.domDataBroker
                         .newReadOnlyTransaction();
                 Object node = t.read(type,