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 / IfFeatureStatementImpl.java
index 42c5e1ee5700900e7fc03ef03b92cacf23726f4a..4b2e434203464e16f98722938aaababea4973307 100644 (file)
@@ -7,6 +7,8 @@
  */
 package org.opendaylight.yangtools.yang.parser.stmt.rfc6020;
 
+import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.IfFeatureEffectiveStatementImpl;
+
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.model.api.Rfc6020Mapping;
 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
@@ -45,7 +47,7 @@ public class IfFeatureStatementImpl extends AbstractDeclaredStatement<QName>
         @Override
         public EffectiveStatement<QName, IfFeatureStatement> createEffective(
                 StmtContext<QName, IfFeatureStatement, EffectiveStatement<QName, IfFeatureStatement>> ctx) {
-            throw new UnsupportedOperationException();
+            return new IfFeatureEffectiveStatementImpl(ctx);
         }
 
     }