RFR: 6766844: ByteArrayInputStream#read with a byte array of length 0 not consistent with InputStream when at EOF [v4]

Brian Burkhalter bpb at openjdk.java.net
Fri Jun 25 20:54:03 UTC 2021


On Fri, 25 Jun 2021 20:49:16 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> Brian Burkhalter has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR.
>
> src/java.base/share/classes/java/io/ByteArrayInputStream.java line 163:
> 
>> 161:      * @apiNote
>> 162:      * Unlike the {@link InputStream#read(byte[],int,int) equivalent method}
>> 163:      * of {@code InputStream}, this method returns {@code -1} instead of zero
> 
> I think I would say superclass method instead of equivalent method.
> Or prehaps overridden method.

I think overridden would work best.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4591


More information about the core-libs-dev mailing list