Integrated: 8313743: Make fields final in sun.nio.ch
Andrey Turbanov
aturbanov at openjdk.org
Mon Aug 14 07:26:28 UTC 2023
On Fri, 21 Jul 2023 22:35:37 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
> Found a few fields in `sun.nio.ch` package which could be declared `final`.
>
> Also I took oportunity to make a couple of cleanups:
> 1. ~Converted `sun.nio.ch.OptionKey` to a record. Getters naming are already match.~
> 2. Removed `sun.nio.ch.WindowsAsynchronousSocketChannelImpl#addressSize`/`sun.nio.ch.WindowsSelectorImpl#addressSize` fields. Address size is already cached inside Unsafe (since [JDK-8221477](https://bugs.openjdk.org/browse/JDK-8221477)).
This pull request has now been integrated.
Changeset: b88c2735
Author: Andrey Turbanov <aturbanov at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/b88c27350328da86e9dc46c8061c6563fdf858a2
Stats: 27 lines in 9 files changed: 0 ins; 2 del; 25 mod
8313743: Make fields final in sun.nio.ch
Reviewed-by: bpb
-------------
PR: https://git.openjdk.org/jdk/pull/14980
More information about the nio-dev
mailing list