RFR: 8313743: Make fields final in sun.nio.ch [v2]

Andrey Turbanov aturbanov at openjdk.org
Fri Aug 4 12:41:51 UTC 2023


> 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)).

Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:

  8313743: Make fields final in sun.nio.ch
  
  update copyrights

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/14980/files
  - new: https://git.openjdk.org/jdk/pull/14980/files/0e287366..6f0b7596

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=14980&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14980&range=00-01

  Stats: 3 lines in 3 files changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/14980.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14980/head:pull/14980

PR: https://git.openjdk.org/jdk/pull/14980


More information about the nio-dev mailing list