Bug 2366 - Effective statements impl for new yang parser.
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / rfc6020 / NotificationStatementImpl.java
index db4f195602955a7ce46008593cfff6dfc841f793..31aa579d3398b6060980657565e2db6049f24d1f 100644 (file)
@@ -7,6 +7,8 @@
  */
 package org.opendaylight.yangtools.yang.parser.stmt.rfc6020;
 
+import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.NotificationEffectiveStatementImpl;
+
 import javax.annotation.Nullable;
 import java.util.Collection;
 import org.opendaylight.yangtools.yang.model.api.stmt.DataDefinitionStatement;
@@ -53,7 +55,7 @@ public class NotificationStatementImpl extends AbstractDeclaredStatement<QName>
         @Override
         public EffectiveStatement<QName, NotificationStatement> createEffective(
                 StmtContext<QName, NotificationStatement, EffectiveStatement<QName, NotificationStatement>> ctx) {
-            throw new UnsupportedOperationException();
+            return new NotificationEffectiveStatementImpl(ctx);
         }
 
     }