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 / BitStatementImpl.java
index 6080528ef413012b1026d3ca1bf0ce96d875db0a..93e227ac00c80ac80a8398f336b8b4e783a155e5 100644 (file)
@@ -7,6 +7,8 @@
  */
 package org.opendaylight.yangtools.yang.parser.stmt.rfc6020;
 
+import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.BitEffectiveStatementImpl;
+
 import org.opendaylight.yangtools.yang.model.api.stmt.DescriptionStatement;
 import org.opendaylight.yangtools.yang.model.api.stmt.PositionStatement;
 import org.opendaylight.yangtools.yang.model.api.stmt.ReferenceStatement;
@@ -48,7 +50,7 @@ public class BitStatementImpl extends AbstractDeclaredStatement<String>
         @Override
         public EffectiveStatement<String, BitStatement> createEffective(
                 StmtContext<String, BitStatement, EffectiveStatement<String, BitStatement>> ctx) {
-            throw new UnsupportedOperationException();
+            return new BitEffectiveStatementImpl(ctx);
         }
 
     }