RFR 8191516: OutputStream.write(byte[], int, int) could have fewer parameter bounds checks

Brian Burkhalter brian.burkhalter at oracle.com
Tue Nov 21 17:21:01 UTC 2017

On Nov 21, 2017, at 9:16 AM, Paul Sandoz <paul.sandoz at oracle.com> wrote:

>> Both good points. Updated accordingly: http://cr.openjdk.java.net/~bpb/8191516/webrev.01/.
> Looks good. How about updating the read method as well to use the bounds check method? (the len == 0 check makes sense there)?

Probably might as well expand it a little to see where else similar changes might be made.



More information about the core-libs-dev mailing list