Skip to content

Commit 41a3e9c

Browse files
IOUtils#toByteArray: fix spelling of local variable name
1 parent 3378280 commit 41a3e9c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/org/apache/commons/io/IOUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -818,10 +818,10 @@ public static byte[] toByteArray(final InputStream input, final int size) throws
818818

819819
final byte[] data = new byte[size];
820820
int offset = 0;
821-
int readed;
821+
int read;
822822

823-
while (offset < size && (readed = input.read(data, offset, size - offset)) != EOF) {
824-
offset += readed;
823+
while (offset < size && (read = input.read(data, offset, size - offset)) != EOF) {
824+
offset += read;
825825
}
826826

827827
if (offset != size) {

0 commit comments

Comments
 (0)