RFR: JDK-8260694: (fc) Add apiNote to FileChannel.transferFrom to better describe "no bytes available" case [v3]
Hamlin Li
mli at openjdk.java.net
Wed Feb 3 05:29:43 UTC 2021
On Wed, 3 Feb 2021 02:05:37 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> Hamlin Li has updated the pull request incrementally with one additional commit since the last revision:
>>
>> JDK-8260694: (fc) Add apiNote to FileChannel.transferFrom to better describe "no bytes available" case
>
> src/java.base/share/classes/java/nio/channels/FileChannel.java line 646:
>
>> 644: * and has fewer than {@code count} bytes immediately available in its
>> 645: * input buffer. No bytes are transferred if the source channel has reached
>> 646: * end-of-stream.
>
> How about `* end-of-stream in which case zero will be returned.`?
Sure, will modify as you suggested.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2329
More information about the nio-dev
mailing list