Fix CanonicalValueViolation.getMessage()
[yangtools.git] / yang / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / RpcResult.java
index 1aed5df711c8d0490d317517bcd888d169f78e30..1c4624abafc9aef14f5be37292ec89b35d997e12 100644 (file)
@@ -7,7 +7,8 @@
  */
 package org.opendaylight.yangtools.yang.common;
 
-import java.util.Collection;
+import java.util.List;
+import org.eclipse.jdt.annotation.NonNull;
 
 /**
  * Represents a general result of a call, request, or operation.
@@ -15,7 +16,6 @@ import java.util.Collection;
  * @param <T> the result value type
  */
 public interface RpcResult<T> {
-
     /**
      * Returns whether or not processing of the call was successful.
      *
@@ -29,10 +29,9 @@ public interface RpcResult<T> {
     T getResult();
 
     /**
-     * Returns a set of errors and warnings which occurred during processing
-     * the call.
+     * Returns a set of errors and warnings which occurred during processing the call.
      *
-     * @return a Collection of {@link RpcError}
+     * @return a list of {@link RpcError}s
      */
-    Collection<RpcError> getErrors();
+    @NonNull List<RpcError> getErrors();
 }