Remove SchemaNode#getPath from RestconfImpl
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / sal / restconf / impl / RestconfImpl.java
index e0f4dd82b4e4e7ef2e8cd379b1f07a4b0339c68b..1a7fd9fc5e91f33d0fef5a5a564dad736c015bc9 100644 (file)
@@ -131,6 +131,7 @@ import org.opendaylight.yangtools.yang.model.api.RpcDefinition;
 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
 import org.opendaylight.yangtools.yang.model.api.SchemaNode;
 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
+import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -1551,7 +1552,7 @@ public final class RestconfImpl implements RestconfService {
             }
             final String moduleName = module.getName();
             checkNotNull(notifiDef, "Notification %s does not exist in module %s", valueQName, moduleName);
-            paths.add(notifiDef.getPath());
+            paths.add(SchemaPath.of(Absolute.of(notifiDef.getQName())));
             streamNameBuilder.append(moduleName).append(':').append(valueQName.getLocalName());
             if (iterator.hasNext()) {
                 streamNameBuilder.append(',');