RFR: 8349157: Unnecessary Hashtable usage in XKeysym.javaKeycode2KeysymHash

Sergey Bylokhov serb at openjdk.org
Fri Nov 14 07:14:10 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.

Marked as reviewed by serb (Reviewer).

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

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


More information about the client-libs-dev mailing list