RFR: 8320971: Use BufferedInputStream.buf directly when param of implTransferTo() is trusted [v13]

Alan Bateman alanb at openjdk.org
Wed Dec 13 16:48:44 UTC 2023


On Wed, 13 Dec 2023 16:20:58 GMT, Markus KARG <duke at openjdk.org> wrote:

> > It doesn't make sense here to add a new package com.sun.io for a single method class. This PR does not need to introduce any new classes at this point. I think this PR needs to focus solely on BIS.
> 
> So you actually prefer copy-and-paste and duplicated code?

It's not important at this time, the starting point is to decide if BIS.transferTo should be changed or not. It does shared some concerns with BAIS but the set of concerns for both is not identical.

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

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


More information about the core-libs-dev mailing list