RFR: 8305762: FileInputStream and FileOutputStream implSpec should be corrected or removed [v2]
Brent Christian
bchristi at openjdk.org
Mon Apr 17 18:56:09 UTC 2023
On Sat, 15 Apr 2023 07:10:46 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Brent Christian has updated the pull request incrementally with one additional commit since the last revision:
>>
>> updates, per review comments
>
> src/java.base/share/classes/java/io/FileInputStream.java line 45:
>
>> 43: * @apiNote
>> 44: * The {@link #close} method should be called to release resources used by this
>> 45: * stream, either directly, or by try-with-resources.
>
> The updated wording looks much better. It pre-dates your change but maybe "or by try-with-resources" should be changed to "with the {@code try}-with-resources statement" while you are there.
Good idea
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13437#discussion_r1169153013
More information about the core-libs-dev
mailing list