YangInstanceIdentifier::toInstance() -> build() 32/27532/1
authorStephen Kitt <skitt@redhat.com>
Mon, 28 Sep 2015 12:51:05 +0000 (14:51 +0200)
committerStephen Kitt <skitt@redhat.com>
Mon, 28 Sep 2015 12:51:05 +0000 (14:51 +0200)
::toInstance() is gone, which breaks the build.

Change-Id: Ic81def83cc7ac371e4d4fcc7db4382c1a0702739
Signed-off-by: Stephen Kitt <skitt@redhat.com>
opendaylight/restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/ControllerContext.java

index acec2f9bfa80ef0b1aabd7b2d9a24637807a3a2d..123309c1f9b4fe6d18a75086574e92fb359918d7 100644 (file)
@@ -511,7 +511,7 @@ public class ControllerContext implements SchemaContextListener {
         }
 
         if (strings.isEmpty()) {
-            return createContext(builder.toInstance(), ((DataSchemaNode) parentNode), mountPoint,mountPoint != null ? mountPoint.getSchemaContext() : globalSchema);
+            return createContext(builder.build(), ((DataSchemaNode) parentNode), mountPoint,mountPoint != null ? mountPoint.getSchemaContext() : globalSchema);
         }
 
         final String head = strings.iterator().next();
@@ -549,7 +549,7 @@ public class ControllerContext implements SchemaContextListener {
                 }
 
                 if (returnJustMountPoint || strings.size() == 1) {
-                    final YangInstanceIdentifier instance = YangInstanceIdentifier.builder().toInstance();
+                    final YangInstanceIdentifier instance = YangInstanceIdentifier.builder().build();
                     return new InstanceIdentifierContext<>(instance, mountPointSchema, mount,mountPointSchema);
                 }