RPC statement should refuse to get copied
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / rpc / RpcStatementSupport.java
index a532af4cddb8f39eab425cfc81fe01ff500af72e..38380d759216f0454c9042d001ae5f88d76e3fa8 100644 (file)
@@ -60,7 +60,7 @@ public final class RpcStatementSupport extends BaseSchemaTreeStatementSupport<Rp
 
     private RpcStatementSupport(final InputStatementSupport implicitInput,
             final OutputStatementSupport implicitOutput) {
-        super(YangStmtMapping.RPC, CopyPolicy.DECLARED_COPY);
+        super(YangStmtMapping.RPC, StatementPolicy.reject());
         this.implicitInput = requireNonNull(implicitInput);
         this.implicitOutput = requireNonNull(implicitOutput);
     }