git: openjdk/jdk: 8321053: Use ByteArrayInputStream.buf directly when parameter of transferTo() is trusted

Brian Burkhalter bpb at openjdk.org
Tue Dec 5 19:42:35 UTC 2023


Changeset: b0d14509
Author:    Brian Burkhalter <bpb at openjdk.org>
Date:      2023-12-05 19:41:12 +0000
URL:       https://git.openjdk.org/jdk/commit/b0d145097cdc61e4bab19393a125e63aa3bc29b9

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

Reviewed-by: alanb

! src/java.base/share/classes/java/io/ByteArrayInputStream.java
+ test/jdk/java/io/ByteArrayInputStream/TransferToTrusted.java



More information about the jdk-changes mailing list