RFR: 8320971: Use BufferedInputStream.buf directly when param of implTransferTo() is trusted [v13]
Markus KARG
duke at openjdk.org
Wed Dec 13 09:08:53 UTC 2023
On Wed, 13 Dec 2023 08:41:37 GMT, Vladimir Sitnikov <vsitnikov at openjdk.org> wrote:
>> 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)`
Feel free to open a PR. :-)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16879#discussion_r1425052398
More information about the core-libs-dev
mailing list