RFR : PrintStream.write() should flush at most once
Alan.Bateman at oracle.com
Wed Aug 7 05:08:46 UTC 2013
On 06/08/2013 09:38, Ivan Gerasimov wrote:
> Hello everybody!
> Would you please review a simple fix, suggested by someone on
> j.i.PrintStream#write(char) calls out.flush() on each '\n' character
> found in the array.
> It's sufficient to do it only once.
One thing to check is whether this will require any changes to the spec
(as it is currently specified to call flush when a newline is written).
I don't have time just at the moment to check this but that would be my
only concern with a change like this.
More information about the core-libs-dev