Remove SchemaNode.getPath()
[yangtools.git] / parser / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / notification / AbstractNotificationStatementSupport.java
index e0d9c201fb4d8b19cea5e5d2566fc8da3491d5e6..e050ab5a549ea2381527743423ae1ebe9e020470 100644 (file)
@@ -49,7 +49,7 @@ abstract class AbstractNotificationStatementSupport
     protected final NotificationEffectiveStatement createEffective(final Current<QName, NotificationStatement> stmt,
             final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
         try {
-            return EffectiveStatements.createNotification(stmt.declared(), stmt.effectivePath(),
+            return EffectiveStatements.createNotification(stmt.declared(), stmt.getArgument(),
                 EffectiveStatementMixins.historyAndStatusFlags(stmt.history(), substatements), substatements);
         } catch (SubstatementIndexingException e) {
             throw new SourceException(e.getMessage(), stmt, e);
@@ -60,7 +60,7 @@ abstract class AbstractNotificationStatementSupport
     // FIXME: propagate original?
     public final NotificationEffectiveStatement copyEffective(final Current<QName, NotificationStatement> stmt,
             final NotificationEffectiveStatement original) {
-        return EffectiveStatements.copyNotification(original, stmt.effectivePath(),
+        return EffectiveStatements.copyNotification(original, stmt.getArgument(),
             EffectiveStatementMixins.historyAndStatusFlags(stmt.history(), original.effectiveSubstatements()));
     }
 }