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

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

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

Changes: https://git.openjdk.org/jdk/pull/16893/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16893&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8321053
  Stats: 95 lines in 2 files changed: 94 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/16893.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16893/head:pull/16893

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

Reply via email to