RFR: 8318677: (ch) Add implNote about minBufferCap to main variant of Channels.newWriter

Alan Bateman alanb at openjdk.org
Tue Oct 24 08:45:29 UTC 2023


On Mon, 23 Oct 2023 22:03:35 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Add an `implNote` about the `minBufferCap` parameter of the three-arg `Channels.newWriter` and slightly tweak the test.

src/java.base/share/classes/java/nio/channels/Channels.java line 427:

> 425:      *
> 426:      * @implNote
> 427:      * The implementation may ignore the value of {@code minBufferCap} provided.

I think we'll need to adjust the specification of parameter too, something like "may be ignored".

For the implNote I think it can just sat that minBufferCap is ignored.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/16325#discussion_r1369817302


More information about the nio-dev mailing list