Integrate MRI projects for Neon
[netconf.git] / restconf / restconf-common / src / main / java / org / opendaylight / restconf / common / errors / RestconfDocumentedException.java
index 3f1f458fb31540fca75217b6c699ddd43a93fa63..0d1868e03d3c9a933b9895e21527f0c103e4d1d0 100644 (file)
@@ -139,7 +139,7 @@ public class RestconfDocumentedException extends WebApplicationException {
      * Constructs an instance with the given RpcErrors.
      */
     public RestconfDocumentedException(final String message, final Throwable cause,
-                                       final Collection<RpcError> rpcErrors) {
+                                       final Collection<? extends RpcError> rpcErrors) {
         this(message, cause, convertToRestconfErrors(rpcErrors));
     }
 
@@ -162,7 +162,7 @@ public class RestconfDocumentedException extends WebApplicationException {
         status = null;
     }
 
-    private static List<RestconfError> convertToRestconfErrors(final Collection<RpcError> rpcErrors) {
+    private static List<RestconfError> convertToRestconfErrors(final Collection<? extends RpcError> rpcErrors) {
         final List<RestconfError> errorList = Lists.newArrayList();
         if (rpcErrors != null) {
             for (RpcError rpcError : rpcErrors) {