RFR: 8304745: Lazily initialize byte[] in java.io.BufferedInputStream [v3]

Sergey Tsypanov stsypanov at openjdk.org
Fri Mar 24 11:37:40 UTC 2023


On Fri, 24 Mar 2023 10:27:45 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> This will ensure that read, skip, reset, etc. check buf as before

Why do we so heavily rely on `buf` if we can do open/close check with `getInIfOpen()`?

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

PR Comment: https://git.openjdk.org/jdk/pull/13150#issuecomment-1482661477


More information about the core-libs-dev mailing list