Skip to content

Commit

Permalink
Fixing method name (#22347)
Browse files Browse the repository at this point in the history
  • Loading branch information
cochi2 authored Jun 17, 2021
1 parent 01f6725 commit 9f6131a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public long getBlockSize() {
* @param blockSize The block size.
* @return The ParallelDownloadOptions object itself.
*/
public ParallelDownloadOptions setBlockSizeLong(Long blockSize) {
public ParallelDownloadOptions setBlockSize(Long blockSize) {
if (blockSize != null) {
assertInBounds("blockSize", blockSize, 1, Long.MAX_VALUE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public void downloadToFileAsync(HttpClient httpClient) {
.downloadToWithResponse(METADATA_URL,
Paths.get("dummyPath"),
channel,
new ParallelDownloadOptions().setBlockSizeLong(479L),
new ParallelDownloadOptions().setBlockSize(479L),
null).block();

Mockito.verify(channel, times(2)).write(any(ByteBuffer.class), anyLong(),
Expand Down

0 comments on commit 9f6131a

Please sign in to comment.