RFR: 8264777: Overload optimized FileInputStream::readAllBytes [v4]
Brian Burkhalter
bpb at openjdk.java.net
Wed May 5 17:42:52 UTC 2021
On Wed, 5 May 2021 17:18:08 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8264777: Fix typo in error message
>
> src/java.base/share/classes/java/io/FileInputStream.java line 289:
>
>> 287: }
>> 288: if (size <= 0L)
>> 289: return new byte[0];
>
> Maybe the case where size <= 0L should also default to `return super.readAllBytes()`?
Yes, that might be better.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3845
More information about the core-libs-dev
mailing list