hg: jdk/sandbox: 8191516: OutputStream.write(byte[], int, int) could have fewer parameter bounds checks

chris.hegarty at oracle.com chris.hegarty at oracle.com
Wed Nov 22 16:18:45 UTC 2017


Changeset: 52c9e8d2f8d9
Author:    bpb
Date:      2017-11-22 08:12 -0800
URL:       http://hg.openjdk.java.net/jdk/sandbox/rev/52c9e8d2f8d9

8191516: OutputStream.write(byte[],int,int) could have fewer parameter bounds checks
Summary: Reduce parameter bounds checks from five to three as in InputStream::read
Reviewed-by: psandoz

! src/java.base/share/classes/java/io/InputStream.java
! src/java.base/share/classes/java/io/OutputStream.java



More information about the jdk-sandbox-changes mailing list