Skip to content

Commit 904d352

Browse files
committed
Javadoc
1 parent 90c87a4 commit 904d352

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/main/java/org/apache/commons/io/channels/FileChannels.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ public final class FileChannels {
3737
*
3838
* @param channel1 A FileChannel.
3939
* @param channel2 Another FileChannel.
40-
* @param byteBufferSize The two internal buffer capacities, in bytes.
40+
* @param bufferCapacity The two internal buffer capacities, in bytes.
4141
* @return true if the contents of both RandomAccessFiles are equal, false otherwise.
4242
* @throws IOException if an I/O error occurs.
4343
* @deprecated Use {@link #contentEquals(SeekableByteChannel, SeekableByteChannel, int)}.
4444
*/
4545
@Deprecated
46-
public static boolean contentEquals(final FileChannel channel1, final FileChannel channel2, final int byteBufferSize) throws IOException {
47-
return contentEquals((SeekableByteChannel) channel1, channel2, byteBufferSize);
46+
public static boolean contentEquals(final FileChannel channel1, final FileChannel channel2, final int bufferCapacity) throws IOException {
47+
return contentEquals((SeekableByteChannel) channel1, channel2, bufferCapacity);
4848
}
4949

5050
/**
@@ -56,11 +56,11 @@ public static boolean contentEquals(final FileChannel channel1, final FileChanne
5656
*
5757
* @param channel1 A readable byte channel.
5858
* @param channel2 Another readable byte channel.
59-
* @param byteBufferSize The two internal buffer capacities, in bytes.
59+
* @param bufferCapacity The two internal buffer capacities, in bytes.
6060
* @return true if the contents of both RandomAccessFiles are equal, false otherwise.
6161
* @throws IOException if an I/O error occurs or the timeout is met.
6262
*/
63-
public static boolean contentEquals(final SeekableByteChannel channel1, final SeekableByteChannel channel2, final int byteBufferSize) throws IOException {
63+
public static boolean contentEquals(final SeekableByteChannel channel1, final SeekableByteChannel channel2, final int bufferCapacity) throws IOException {
6464
// Short-circuit test
6565
if (Objects.equals(channel1, channel2)) {
6666
return true;
@@ -75,8 +75,8 @@ public static boolean contentEquals(final SeekableByteChannel channel1, final Se
7575
return true;
7676
}
7777
// Dig in and do the work
78-
final ByteBuffer byteBuffer1 = ByteBuffer.allocateDirect(byteBufferSize);
79-
final ByteBuffer byteBuffer2 = ByteBuffer.allocateDirect(byteBufferSize);
78+
final ByteBuffer byteBuffer1 = ByteBuffer.allocateDirect(bufferCapacity);
79+
final ByteBuffer byteBuffer2 = ByteBuffer.allocateDirect(bufferCapacity);
8080
int numRead1 = 0;
8181
int numRead2 = 0;
8282
boolean read0On1 = false;

0 commit comments

Comments
 (0)