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

Paul Hohensee phh at openjdk.org
Tue Apr 22 19:55:18 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 can confirm that @fandreuz is an Amazon employee and covered by the OCA.

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

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


More information about the jdk-updates-dev mailing list