On Wed, 20 Apr 2022 16:30:19 GMT, XenoAmess <d...@openjdk.java.net> wrote:
>> @jmehrens what about this then? >> I think it safe now(actually this mechanism is learned from Reader) > > XenoAmess has updated the pull request incrementally with one additional > commit since the last revision: > > remove uselsee MIN_SKIP_BUFFER_SIZE src/java.base/share/classes/java/io/InputStream.java line 62: > 60: > 61: private byte[] skipBufferReference(long remaining) { > 62: int size = (int) Math.min(MAX_SKIP_BUFFER_SIZE, remaining); This is now redundant. Can change parameter to (int size) directly ------------- PR: https://git.openjdk.java.net/jdk/pull/5872