You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pa...@apache.org on 2017/04/25 19:05:23 UTC

commons-io git commit: IOUtils#toByteArray: fix spelling of local variable name

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 <pa...@gmx.net>
Authored: Tue Apr 25 21:05:11 2017 +0200
Committer: pascalschumacher <pa...@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) {


Fwd: commons-io git commit: IOUtils#toByteArray: fix spelling of local variable name

Posted by Gary Gregory <ga...@gmail.com>.
Good one! :-)

Gary
---------- Forwarded message ----------
From: <pa...@apache.org>
Date: Apr 25, 2017 12:05 PM
Subject: commons-io git commit: IOUtils#toByteArray: fix spelling of local
variable name
To: <co...@commons.apache.org>
Cc:

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 <pa...@gmx.net>
Authored: Tue Apr 25 21:05:11 2017 +0200
Committer: pascalschumacher <pa...@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) {