Fix checkstyle issues reported by odlparent-3.0.0's checkstyle
[yangtools.git] / yang / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / RpcResultBuilder.java
index be6801fc86580bea267a2130adc47ae93928c516..7b877ecb2ee315c500f8a935f9f77cc032b9723f 100644 (file)
@@ -264,6 +264,7 @@ public final class RpcResultBuilder<T> implements Builder<RpcResult<T>> {
      *
      * @param result the result value
      */
+    @SuppressWarnings("checkstyle:hiddenField")
     public RpcResultBuilder<T> withResult(final T result) {
         this.result = result;
         return this;
@@ -395,11 +396,11 @@ public final class RpcResultBuilder<T> implements Builder<RpcResult<T>> {
     /**
      * Adds RpcErrors.
      *
-     * @param errors the list of RpcErrors
+     * @param rpcErrors the list of RpcErrors
      */
-    public RpcResultBuilder<T> withRpcErrors(final Collection<RpcError> errors) {
-        if (errors != null) {
-            for (RpcError error : errors) {
+    public RpcResultBuilder<T> withRpcErrors(final Collection<RpcError> rpcErrors) {
+        if (rpcErrors != null) {
+            for (RpcError error : rpcErrors) {
                 addError(error);
             }
         }