RFR: 8341566: Adding factory for non-synchronized CharSequence Reader [v3]

Bernd duke at openjdk.org
Sun Oct 6 17:58:36 UTC 2024


On Sun, 6 Oct 2024 14:54:22 GMT, Markus KARG <duke at openjdk.org> wrote:

>> src/java.base/share/classes/java/io/Reader.java line 163:
>> 
>>> 161:      * {@code transferTo()} methods all throw {@code IOException}.
>>> 162:      *
>>> 163:      * <p> The {@code markSupported()} method returns {@code true}.
>> 
>> Suggestion:
>> 
>>      * <p>The returned reader supports the {@link #mark mark()} operation.
>
> This is not wrong. This exact wording is already used in `Reader.java`, so it would be strange to change it *just here*.

You can “elaborately” the close and mark protocol in the Reader interface and then only mention itnadgeres to it here.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21371#discussion_r1789187627


More information about the core-libs-dev mailing list