RFR: 8261301: StringWriter.flush() is NOOP but documentation does not indicate it

Brian Burkhalter bpb at openjdk.java.net
Fri Apr 9 14:52:21 UTC 2021


On Thu, 8 Apr 2021 13:46:00 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> The specification of the method `flush()` in the `java.io` classes `CharArrayWriter` and `StringWriter` is not explicit about the fact that the method has no effect. This request proposes to add to the specification of each flush() method the sentence
>> The {@code flush} method of {@code <ClassName/>} does nothing.
>> The corresponding CSR is JDK-8264867.
>
> In the CSR, the first sentence of the Summary should be context free.
> It is used standalone in other contexts to describe the change.  Perhaps change to:
> "Clarify the `flush` methods in java.io classes CharArrayWriter and StringWriter do nothing."

@RogerRiggs I updated the CSR as you suggested, thanks!

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

PR: https://git.openjdk.java.net/jdk/pull/3383


More information about the core-libs-dev mailing list