RFR: 8292279: (fs) Use try-with-resources to release NativeBuffer [v2]
Alan Bateman
alanb at openjdk.org
Mon Aug 15 08:23:28 UTC 2022
On Mon, 15 Aug 2022 08:18:38 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
>> Since [JDK-8260966](https://bugs.openjdk.org/browse/JDK-8260966), NativeBuffer implements AutoCloseable interface.
>> Now we can use try-with-resources statements to simplify code.
>
> Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
>
> 8292279: (fs) Use try-with-resources to release NativeBuffer
>
> apply Alan's suggestion
Marked as reviewed by alanb (Reviewer).
-------------
PR: https://git.openjdk.org/jdk/pull/9794
More information about the nio-dev
mailing list