[jdk21u-dev] RFR: 8317264: Pattern.Bound has `static` fields that should be `static final`.

Goetz Lindenmaier goetz at openjdk.org
Thu May 8 06:29:54 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.

I successfully ran this through SAPs testing.

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

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1622#issuecomment-2861921884


More information about the jdk-updates-dev mailing list