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 / RpcStatementImpl.java
index 5d68f3700f4e3b200259743fbeec6db63b33e276..c5c727dfafd48a4f4f9c4632bf1def0ddb53c743 100644 (file)
@@ -7,6 +7,8 @@
  */
 package org.opendaylight.yangtools.yang.parser.stmt.rfc6020;
 
+import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.RpcEffectiveStatementImpl;
+
 import javax.annotation.Nullable;
 import java.util.Collection;
 import org.opendaylight.yangtools.yang.model.api.stmt.DescriptionStatement;
@@ -54,7 +56,7 @@ public class RpcStatementImpl extends AbstractDeclaredStatement<QName>
         @Override
         public EffectiveStatement<QName, RpcStatement> createEffective(
                 StmtContext<QName, RpcStatement, EffectiveStatement<QName, RpcStatement>> ctx) {
-            throw new UnsupportedOperationException();
+            return new RpcEffectiveStatementImpl(ctx);
         }
 
     }