diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ParallelDownloadOptions.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ParallelDownloadOptions.java index 13c5bbb3311a2..741c887385adf 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ParallelDownloadOptions.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ParallelDownloadOptions.java @@ -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); } diff --git a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentAsyncLiveTests.java b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentAsyncLiveTests.java index 899ffe2d8f77c..7ba9ab763175b 100644 --- a/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentAsyncLiveTests.java +++ b/sdk/communication/azure-communication-callingserver/src/test/java/com/azure/communication/callingserver/DownloadContentAsyncLiveTests.java @@ -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(),