RPCs cannot be defined inside reusable constructs and therefore
they should never be copied. Use the appropriate policy.
JIRA: YANGTOOLS-1195
Change-Id: I4cbf582cac0a4865447bc3782cf1771c96d7cba3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
*/
public abstract class BaseSchemaTreeStatementSupport<D extends DeclaredStatement<QName>,
E extends SchemaTreeEffectiveStatement<D>> extends AbstractQNameStatementSupport<D, E> {
*/
public abstract class BaseSchemaTreeStatementSupport<D extends DeclaredStatement<QName>,
E extends SchemaTreeEffectiveStatement<D>> extends AbstractQNameStatementSupport<D, E> {
+ protected BaseSchemaTreeStatementSupport(final StatementDefinition publicDefinition,
+ final StatementPolicy<QName, D> policy) {
+ super(publicDefinition, policy);
+ }
+
+ @Deprecated
protected BaseSchemaTreeStatementSupport(final StatementDefinition publicDefinition, final CopyPolicy copyPolicy) {
super(publicDefinition, copyPolicy);
}
protected BaseSchemaTreeStatementSupport(final StatementDefinition publicDefinition, final CopyPolicy copyPolicy) {
super(publicDefinition, copyPolicy);
}
private RpcStatementSupport(final InputStatementSupport implicitInput,
final OutputStatementSupport implicitOutput) {
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);
}
this.implicitInput = requireNonNull(implicitInput);
this.implicitOutput = requireNonNull(implicitOutput);
}