This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push: new 7cfa40d6 Fix Javadoc and comments 7cfa40d6 is described below commit 7cfa40d69c0ffa789b0e527f78b0c7c5d38ffb61 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Wed Oct 11 08:44:52 2023 -0400 Fix Javadoc and comments --- .../commons/io/input/UnsynchronizedBufferedInputStream.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStream.java b/src/main/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStream.java index ffd456df..71a18411 100644 --- a/src/main/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStream.java +++ b/src/main/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStream.java @@ -105,7 +105,7 @@ public final class UnsynchronizedBufferedInputStream extends UnsynchronizedFilte protected volatile byte[] buffer; /** - * The total number of bytes inside the byte array {@code buf}. + * The total number of bytes inside the byte array {@code buffer}. */ protected int count; @@ -120,7 +120,7 @@ public final class UnsynchronizedBufferedInputStream extends UnsynchronizedFilte protected int markPos = IOUtils.EOF; /** - * The current position within the byte array {@code buf}. + * The current position within the byte array {@code buffer}. */ protected int pos; @@ -190,8 +190,8 @@ public final class UnsynchronizedBufferedInputStream extends UnsynchronizedFilte } final byte[] newbuf = new byte[newLength]; System.arraycopy(localBuf, 0, newbuf, 0, localBuf.length); - // Reassign buf, which will invalidate any local references - // FIXME: what if buf was null? + // Reassign buffer, which will invalidate any local references + // FIXME: what if buffer was null? localBuf = buffer = newbuf; } else if (markPos > 0) { System.arraycopy(localBuf, markPos, localBuf, 0, localBuf.length - markPos);