RFR: 4774868: (fc spec) Unclear spec for FileChannel.force [v2]
Brian Burkhalter
bpb at openjdk.java.net
Tue Jan 25 17:25:14 UTC 2022
On Tue, 25 Jan 2022 07:57:29 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 4774868: Tweak verbiage
>
> src/java.base/share/classes/java/nio/channels/FileChannel.java line 560:
>
>> 558: * channel was derived from a {@link FileOutputStream} or
>> 559: * {@link RandomAccessFile} using the {@code getChannel} method,
>> 560: * via the methods defined in those classes. It may or
>
> This looks okay, I just note that the existing javadoc uses "obtain" rather than "derive". An alternative to consider is "or the methods defined by FOS or RAF when the channel was obtained with the getChannel method".
So changed.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7207
More information about the nio-dev
mailing list