From b79bfc1cc34a87b5e92f7fcb8ba80845bdb3ed08 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Fri, 10 Aug 2018 12:57:10 +0200 Subject: [PATCH] Loosen RpcResultBuilder argument withRpcErrors can accept a collection of any RpcError subclasses, express that in the API contract. Change-Id: I8f302874cb509474e3a974e3b4730338984eda78 Signed-off-by: Robert Varga (cherry picked from commit 5bdf2e72626b1cd8c9e98a984e9fc28465d72454) --- .../opendaylight/yangtools/yang/common/RpcResultBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/RpcResultBuilder.java b/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/RpcResultBuilder.java index 7b877ecb2e..e47737610d 100644 --- a/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/RpcResultBuilder.java +++ b/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/RpcResultBuilder.java @@ -398,7 +398,7 @@ public final class RpcResultBuilder implements Builder> { * * @param rpcErrors the list of RpcErrors */ - public RpcResultBuilder withRpcErrors(final Collection rpcErrors) { + public RpcResultBuilder withRpcErrors(final Collection rpcErrors) { if (rpcErrors != null) { for (RpcError error : rpcErrors) { addError(error); -- 2.36.6