RFR: 8066869: Add Closeable::closeUnchecked that is the equivalent of close but throws UncheckedIOException [v2]

Brian Burkhalter bpb at openjdk.org
Fri Jul 7 15:56:16 UTC 2023


On Fri, 7 Jul 2023 01:18:10 GMT, Chen Liang <liach at openjdk.org> wrote:

>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8066869: linkplain -> link
>
> src/java.base/share/classes/java/io/Closeable.java line 72:
> 
>> 70:      * Therefore if an {@linkplain UncheckedIOException} is thrown then its
>> 71:      * {@linkplain UncheckedIOException#getCause() getCause} method will return the
>> 72:      * {@linkplain IOException} thrown by {@link #close() close}.
> 
> These links should all be `@link` as they should be rendered like code like the `{@code IOException}` below.

I agree. So changed in c89945b81a9d8312087593ed5e6ccba06a413ce0.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14789#discussion_r1256041500


More information about the core-libs-dev mailing list