Integrated: 8292279: (fs) Use try-with-resources to release NativeBuffer
Andrey Turbanov
aturbanov at openjdk.org
Wed Aug 17 07:22:20 UTC 2022
On Mon, 8 Aug 2022 07:35:44 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.
This pull request has now been integrated.
Changeset: 1d9c2f7a
Author: Andrey Turbanov <aturbanov at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/1d9c2f7a6e3e897721ef99af8f383a07148b7c4e
Stats: 174 lines in 13 files changed: 6 ins; 113 del; 55 mod
8292279: (fs) Use try-with-resources to release NativeBuffer
Reviewed-by: alanb
-------------
PR: https://git.openjdk.org/jdk/pull/9794
More information about the nio-dev
mailing list