RFR: 8349157: Unnecessary Hashtable usage in XKeysym.javaKeycode2KeysymHash

Alexey Ivanov aivanov at openjdk.org
Mon Nov 3 15:16:49 UTC 2025


On Wed, 29 Jan 2025 09:35:09 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> There is a field `sun.awt.X11.XKeysym#javaKeycode2KeysymHash` which uses legacy Hashtable class.
> As this map is read-only and all its content is initialized in `<clinit>` we can safely use immutable Map instead.

Looks reasonable to me. I'd approve it.

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

PR Review: https://git.openjdk.org/jdk/pull/23347#pullrequestreview-3411499877


More information about the client-libs-dev mailing list