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

Markus KARG duke at openjdk.org
Sun Dec 17 13:53:42 UTC 2023


On Sun, 17 Dec 2023 07:49:16 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> > Let's follow Alan's proposal and simply inline this.
> 
> I didn't suggest inlining this. I just asked not to add a new package com.sun.io with a single method class. Also as the concerns with BAIS and BIS are not the same (they do overlap but they are not the same), I think it's best to keep the changes as local as possible. It can be made more widely useful in the future but great care must be taken.

Well, effectively inlining is the *ultimate* locality. ;-)

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

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


More information about the core-libs-dev mailing list