Switch Import/Include/BelongsTo statements to use Unqualified
[yangtools.git] / model / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / ModuleImport.java
index 30ff0197c1abda456e76c5e12e354f9a7fe1efa6..bf3ea93caee7f0a7b2bb0f693645a55cc2923533 100644 (file)
@@ -28,7 +28,7 @@ public interface ModuleImport extends DocumentedNode, EffectiveStatementEquivale
      * @return Name of the module to import
      */
     default @NonNull String getModuleName() {
-        return asEffectiveStatement().argument();
+        return asEffectiveStatement().argument().getLocalName();
     }
 
     /**