RFR: 8275840: Add test to java/nio/channels/Channels/TransferTo.java to test transfer sizes > 2GB [v3]
Brian Burkhalter
bpb at openjdk.java.net
Mon Nov 1 16:48:16 UTC 2021
On Sun, 31 Oct 2021 17:43:41 GMT, Markus KARG <duke at openjdk.java.net> wrote:
>> Testing `FileChannel.transferTo(FileChannel)` with more than 2 GB of data is covering the case that *multiple* iterations of `FileChannel.transferTo(FileChannel)` are actually performed by the test.
>>
>> This change was requested Alan Bateman @AlanBateman.
>
> Markus KARG has updated the pull request incrementally with one additional commit since the last revision:
>
> Constants instead of local variables
>
> Signed-off-by: Markus Karg <markus at headcrashing.eu>
test/jdk/java/nio/channels/Channels/TransferTo.java line 152:
> 150: long count;
> 151: try (InputStream inputStream = Channels.newInputStream(FileChannel.open(sourceFile));
> 152: OutputStream outputStream = Channels.newOutputStream(FileChannel.open(targetFile, StandardOpenOption.WRITE))) {
I think that this needs to be indented.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6093
More information about the nio-dev
mailing list