java.io.Writer uses CharSequence.toString()
Fabian Lange
lange.fabian at gmail.com
Fri Jul 29 08:23:31 UTC 2016
Hi,
this week I learned that java.io.Writer while having
append(CharSequence) methods, will invoke toString() on them before
actually appending.
This is especially sad because after having mad the String, write()
will then copy out the chars of the string and then iterate over the
chars individually.
Something an iteration over chars of the CharSequence could have
achieved much better.
Fabian
More information about the core-libs-dev
mailing list