Skip to content

Commit b519c7e

Browse files
committed
Use same parameter name as in superclass
1 parent 1a6c331 commit b519c7e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,15 @@ public int read() throws IOException {
182182
/**
183183
* Invokes the delegate's {@code read(byte[])} method.
184184
*
185-
* @param bts the buffer to read the bytes into
185+
* @param b the buffer to read the bytes into
186186
* @return the number of bytes read or EOF if the end of stream
187187
* @throws IOException if an I/O error occurs.
188188
*/
189189
@Override
190-
public int read(final byte[] bts) throws IOException {
190+
public int read(final byte[] b) throws IOException {
191191
try {
192-
beforeRead(IOUtils.length(bts));
193-
final int n = in.read(bts);
192+
beforeRead(IOUtils.length(b));
193+
final int n = in.read(b);
194194
afterRead(n);
195195
return n;
196196
} catch (final IOException e) {
@@ -202,17 +202,17 @@ public int read(final byte[] bts) throws IOException {
202202
/**
203203
* Invokes the delegate's {@code read(byte[], int, int)} method.
204204
*
205-
* @param bts the buffer to read the bytes into
205+
* @param b the buffer to read the bytes into
206206
* @param off The start offset
207207
* @param len The number of bytes to read
208208
* @return the number of bytes read or -1 if the end of stream
209209
* @throws IOException if an I/O error occurs.
210210
*/
211211
@Override
212-
public int read(final byte[] bts, final int off, final int len) throws IOException {
212+
public int read(final byte[] b, final int off, final int len) throws IOException {
213213
try {
214214
beforeRead(len);
215-
final int n = in.read(bts, off, len);
215+
final int n = in.read(b, off, len);
216216
afterRead(n);
217217
return n;
218218
} catch (final IOException e) {

0 commit comments

Comments
 (0)