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

Brian Burkhalter brian.burkhalter at oracle.com
Tue Nov 21 16:47:07 UTC 2017

On Nov 20, 2017, at 6:32 PM, Paul Sandoz <paul.sandoz at oracle.com> wrote:

> See also Objects.checkFromIndexSize if you wanna use that instead.
> Also the if len == 0 check is probably redundant, i doubt it makes any difference given the condition needs to be checked before entering the loop.

Both good points. Updated accordingly: http://cr.openjdk.java.net/~bpb/8191516/webrev.01/.



More information about the core-libs-dev mailing list