On Wed, 13 Dec 2023 08:15:21 GMT, Sergey Tsypanov <stsypa...@openjdk.org> wrote:

>> It looks like we can skip copying of `byte[]` in 
>> `BufferedInputStream.implTransferTo()` for `OutputStreams` residing in 
>> `java.io`.
>> 
>> See comment by @vlsi in 
>> https://github.com/openjdk/jdk/pull/10525/files#diff-e19c508d1bb6ee78697ecca66947c395adda0d9c49a85bf696e677ecbd977af1R612
>
> Sergey Tsypanov has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   8320971: Fix JavaDoc

test/jdk/java/io/BufferedInputStream/TransferToTrusted.java line 52:

> 50:             byte[] tmp = new byte[len];
> 51:             RND.nextBytes(tmp);
> 52:             System.arraycopy(tmp, 0, b, off, len);

It is sad there's no `Random#nextBytes(byte[] buf, int offs, int len)`

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16879#discussion_r1425023714

Reply via email to