[jdk21u-dev] RFR: 8317264: Pattern.Bound has `static` fields that should be `static final`.
Francesco Andreuzzi
duke at openjdk.org
Tue Apr 22 19:55:18 UTC 2025
Clean backport of JDK-8317264. The fields are never assigned after initialization. final leads to shorter bytecode. It's a minor performance optimization in Regex.
-------------
Commit messages:
- Backport ecb5e8a03f67c92d7956201de1fa7d07cc6af9cb
Changes: https://git.openjdk.org/jdk21u-dev/pull/1622/files
Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1622&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8317264
Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod
Patch: https://git.openjdk.org/jdk21u-dev/pull/1622.diff
Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1622/head:pull/1622
PR: https://git.openjdk.org/jdk21u-dev/pull/1622
More information about the jdk-updates-dev
mailing list