ByteArrayOutputStream should not have a new writeBytes method in Java 11

Stuart Marks stuart.marks at oracle.com
Tue Sep 11 20:23:41 UTC 2018


> 2. even if, it should not be byte b[] but byte[] b

Yeah we need to clean occurrences of this anachronistic array declaration from 
the JDK. I noticed a few others nearby. It's startling that a new occurrence has 
crept it. (Or maybe not, perhaps it was done to conform to the nearby code.)

Any volunteers to clean this up?

An interesting exercise would be to write a detector for this declaration style.

s'marks


More information about the core-libs-dev mailing list