Skip to content

Commit b817f91

Browse files
committed
Javadoc
1 parent 6ddc083 commit b817f91

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/java/org/apache/commons/io/input/buffer/CircularByteBuffer.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void add(final byte value) {
8585
* @throws IllegalStateException The buffer doesn't have sufficient space. Use
8686
* {@link #getSpace()} to prevent this exception.
8787
* @throws IllegalArgumentException Either of {@code offset}, or {@code length} is negative.
88-
* @throws NullPointerException The byte array {@code pBuffer} is null.
88+
* @throws NullPointerException The byte array {@code targetBuffer} is null.
8989
*/
9090
public void add(final byte[] targetBuffer, final int offset, final int length) {
9191
Objects.requireNonNull(targetBuffer, "Buffer");
@@ -177,10 +177,10 @@ public boolean hasSpace(final int count) {
177177
* @param offset start offset
178178
* @param length length to compare
179179
* @return True, if the next invocations of {@link #read()} will return the
180-
* bytes at offsets {@code pOffset}+0, {@code pOffset}+1, ...,
181-
* {@code pOffset}+{@code length}-1 of byte array {@code pBuffer}.
182-
* @throws IllegalArgumentException Either of {@code pOffset}, or {@code length} is negative.
183-
* @throws NullPointerException The byte array {@code pBuffer} is null.
180+
* bytes at offsets {@code sourceBuffer}+0, {@code offset}+1, ...,
181+
* {@code offset}+{@code length}-1 of byte array {@code sourceBuffer}.
182+
* @throws IllegalArgumentException Either of {@code sourceBuffer}, or {@code length} is negative.
183+
* @throws NullPointerException The byte array {@code sourceBuffer} is null.
184184
*/
185185
public boolean peek(final byte[] sourceBuffer, final int offset, final int length) {
186186
Objects.requireNonNull(sourceBuffer, "Buffer");
@@ -232,8 +232,8 @@ public byte read() {
232232
* @param targetBuffer The byte array, where to add bytes.
233233
* @param targetOffset The offset, where to store bytes in the byte array.
234234
* @param length The number of bytes to return.
235-
* @throws NullPointerException The byte array {@code pBuffer} is null.
236-
* @throws IllegalArgumentException Either of {@code pOffset}, or {@code length} is negative,
235+
* @throws NullPointerException The byte array {@code targetBuffer} is null.
236+
* @throws IllegalArgumentException Either of {@code targetOffset}, or {@code length} is negative,
237237
* or the length of the byte array {@code targetBuffer} is too small.
238238
* @throws IllegalStateException The buffer doesn't hold the given number
239239
* of bytes. Use {@link #getCurrentNumberOfBytes()} to prevent this

0 commit comments

Comments
 (0)