commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject commons-io git commit: IOUtils#toByteArray: fix spelling of local variable name
Date Tue, 25 Apr 2017 19:05:23 GMT
Repository: commons-io
Updated Branches:
  refs/heads/master 337828003 -> 41a3e9c52


IOUtils#toByteArray: fix spelling of local variable name


Project: http://git-wip-us.apache.org/repos/asf/commons-io/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-io/commit/41a3e9c5
Tree: http://git-wip-us.apache.org/repos/asf/commons-io/tree/41a3e9c5
Diff: http://git-wip-us.apache.org/repos/asf/commons-io/diff/41a3e9c5

Branch: refs/heads/master
Commit: 41a3e9c52d52f60d121ae99d281881a55e006bca
Parents: 3378280
Author: pascalschumacher <pascalschumacher@gmx.net>
Authored: Tue Apr 25 21:05:11 2017 +0200
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Tue Apr 25 21:05:11 2017 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/io/IOUtils.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-io/blob/41a3e9c5/src/main/java/org/apache/commons/io/IOUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/io/IOUtils.java b/src/main/java/org/apache/commons/io/IOUtils.java
index 70caf4f..f4ccaf4 100644
--- a/src/main/java/org/apache/commons/io/IOUtils.java
+++ b/src/main/java/org/apache/commons/io/IOUtils.java
@@ -818,10 +818,10 @@ public class IOUtils {
 
         final byte[] data = new byte[size];
         int offset = 0;
-        int readed;
+        int read;
 
-        while (offset < size && (readed = input.read(data, offset, size - offset))
!= EOF) {
-            offset += readed;
+        while (offset < size && (read = input.read(data, offset, size - offset))
!= EOF) {
+            offset += read;
         }
 
         if (offset != size) {


Mime
View raw message