ByteArrayOutputStream should not have a new writeBytes method in Java 11

Michael Rasmussen Michael.Rasmussen at roguewave.com
Wed Sep 12 05:36:37 UTC 2018


> I noticed a few others nearby. It's startling that a new occurrence has crept it.
At least I haven't seen it on return types, like: public byte toArray() [] { ... }

> An interesting exercise would be to write a detector for this declaration style.
Can a language syntax/feature be deprecated to produce a warning in javac?
Perhaps this one should.

/Michael


More information about the core-libs-dev mailing list