Bump MRI upstreams
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / codecs / StringModuleInstanceIdentifierCodec.java
index c026f7dbc32297bb68f5ab9c426a445a45608545..aa34c29e281aba07bdeb48c61bbbaae77219ddf8 100644 (file)
@@ -9,8 +9,8 @@ package org.opendaylight.restconf.nb.rfc8040.codecs;
 
 import static java.util.Objects.requireNonNull;
 
-import java.net.URI;
 import org.eclipse.jdt.annotation.NonNull;
+import org.opendaylight.yangtools.yang.common.XMLNamespace;
 import org.opendaylight.yangtools.yang.data.util.AbstractModuleStringInstanceIdentifierCodec;
 import org.opendaylight.yangtools.yang.data.util.DataSchemaContextTree;
 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
@@ -47,7 +47,7 @@ public final class StringModuleInstanceIdentifierCodec extends AbstractModuleStr
     }
 
     @Override
-    protected String prefixForNamespace(final URI namespace) {
+    protected String prefixForNamespace(final XMLNamespace namespace) {
         return this.context.findModules(namespace).stream().findFirst().map(Module::getName).orElse(null);
     }
 }