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

Naoto Sato naoto at openjdk.java.net
Wed Apr 7 22:17:00 UTC 2021


On Wed, 7 Apr 2021 21:01:48 GMT, Brian Burkhalter <bpb 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.

Marked as reviewed by naoto (Reviewer).

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

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


More information about the core-libs-dev mailing list