Skip to content

Commit 7cfa40d

Browse files
committed
Fix Javadoc and comments
1 parent 20d8a00 commit 7cfa40d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStream.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public UnsynchronizedBufferedInputStream get() throws IOException {
105105
protected volatile byte[] buffer;
106106

107107
/**
108-
* The total number of bytes inside the byte array {@code buf}.
108+
* The total number of bytes inside the byte array {@code buffer}.
109109
*/
110110
protected int count;
111111

@@ -120,7 +120,7 @@ public UnsynchronizedBufferedInputStream get() throws IOException {
120120
protected int markPos = IOUtils.EOF;
121121

122122
/**
123-
* The current position within the byte array {@code buf}.
123+
* The current position within the byte array {@code buffer}.
124124
*/
125125
protected int pos;
126126

@@ -190,8 +190,8 @@ private int fillBuffer(final InputStream localIn, byte[] localBuf) throws IOExce
190190
}
191191
final byte[] newbuf = new byte[newLength];
192192
System.arraycopy(localBuf, 0, newbuf, 0, localBuf.length);
193-
// Reassign buf, which will invalidate any local references
194-
// FIXME: what if buf was null?
193+
// Reassign buffer, which will invalidate any local references
194+
// FIXME: what if buffer was null?
195195
localBuf = buffer = newbuf;
196196
} else if (markPos > 0) {
197197
System.arraycopy(localBuf, markPos, localBuf, 0, localBuf.length - markPos);

0 commit comments

Comments
 (0)