Integrated: 8321053: Use ByteArrayInputStream.buf directly when parameter of transferTo() is trusted

Brian Burkhalter bpb at openjdk.org
Tue Dec 5 19:43:56 UTC 2023


On Thu, 30 Nov 2023 00:03:21 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Pass `ByteArrayInputStream.buf ` directly to the `OutputStream` parameter of `BAIS.transferTo` only if the target stream is in the `java.io` package.

This pull request has now been integrated.

Changeset: b0d14509
Author:    Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b0d145097cdc61e4bab19393a125e63aa3bc29b9
Stats:     108 lines in 2 files changed: 107 ins; 0 del; 1 mod

8321053: Use ByteArrayInputStream.buf directly when parameter of transferTo() is trusted

Reviewed-by: alanb

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

PR: https://git.openjdk.org/jdk/pull/16893


More information about the core-libs-dev mailing list