[jdk21u-dev] RFR: 8317264: Pattern.Bound has `static` fields that should be `static final`.
Goetz Lindenmaier
goetz at openjdk.org
Thu Apr 24 07:56:51 UTC 2025
On Wed, 9 Apr 2025 12:02:12 GMT, Francesco Andreuzzi <duke at openjdk.org> wrote:
> 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.
Hi @fandreuz
Why do you want to backport this? Please amend the fix request comment with a reasoning. We usually don't backport performance enhancements.
-------------
PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1622#issuecomment-2826700673
More information about the jdk-updates-dev
mailing list