RFR: 8349157: Unnecessary Hashtable usage in XKeysym.javaKeycode2KeysymHash

Alexey Ivanov aivanov at openjdk.org
Tue Nov 4 17:35:52 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.

The tests are green.

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

Marked as reviewed by aivanov (Reviewer).

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


More information about the client-libs-dev mailing list