BUG-4556: Introduce StmtContext.getSchemaPath()
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / rfc6020 / effective / ExtendedTypeEffectiveStatementImpl.java
index fe0ccae5aaca3304df7f4eb129ce99d14468e673..912ffc99ae12d1e62bba1496d40afdb2e7f8fdeb 100644 (file)
@@ -69,9 +69,9 @@ implements
         final StmtContext<?, TypedefStatement, TypedefEffectiveStatement> typeStmt =
                 ctx.getFromNamespace(TypeNamespace.class, qName);
         if (typeStmt == null) {
-            path = Utils.getSchemaPath(ctx);
+            path = ctx.getSchemaPath().get();
         } else {
-            path = Utils.getSchemaPath(ctx.getFromNamespace(TypeNamespace.class, qName));
+            path = ctx.getFromNamespace(TypeNamespace.class, qName).getSchemaPath().get();
         }
 
         UnitsEffectiveStatementImpl unitsStmt = firstEffective(UnitsEffectiveStatementImpl.class);