withRpcErrors can accept a collection of any RpcError subclasses,
express that in the API contract.
Change-Id: I8f302874cb509474e3a974e3b4730338984eda78
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
5bdf2e72626b1cd8c9e98a984e9fc28465d72454)
*
* @param rpcErrors the list of RpcErrors
*/
- public RpcResultBuilder<T> withRpcErrors(final Collection<RpcError> rpcErrors) {
+ public RpcResultBuilder<T> withRpcErrors(final Collection<? extends RpcError> rpcErrors) {
if (rpcErrors != null) {
for (RpcError error : rpcErrors) {
addError(error);