BUG-1092: adjust to YangInstanceIdentifier
[controller.git] / opendaylight / md-sal / sal-protocolbuffer-encoding / src / main / java / org / opendaylight / controller / cluster / datastore / node / utils / NodeIdentifierFactory.java
index 3250fadcf57dff837bcd396e1ef3c956049fc589..9669c99602246beb9e0d02d6340a0d2122b080df 100644 (file)
@@ -1,14 +1,14 @@
 package org.opendaylight.controller.cluster.datastore.node.utils;
 
-import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
+import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 
 import java.util.HashMap;
 import java.util.Map;
 
 public class NodeIdentifierFactory {
-    private static final Map<String, InstanceIdentifier.PathArgument> cache = new HashMap<>();
-    public static InstanceIdentifier.PathArgument getArgument(String id){
-        InstanceIdentifier.PathArgument value = cache.get(id);
+    private static final Map<String, YangInstanceIdentifier.PathArgument> cache = new HashMap<>();
+    public static YangInstanceIdentifier.PathArgument getArgument(String id){
+        YangInstanceIdentifier.PathArgument value = cache.get(id);
         if(value == null){
             synchronized (cache){
                 value = cache.get(id);
@@ -21,7 +21,7 @@ public class NodeIdentifierFactory {
         return value;
     }
 
-    private static InstanceIdentifier.PathArgument createPathArgument(String id){
+    private static YangInstanceIdentifier.PathArgument createPathArgument(String id){
         final NodeIdentifierWithPredicatesGenerator
             nodeIdentifierWithPredicatesGenerator = new NodeIdentifierWithPredicatesGenerator(id);
         if(nodeIdentifierWithPredicatesGenerator.matches()){