Integrated: 8349157: Unnecessary Hashtable usage in XKeysym.javaKeycode2KeysymHash

Andrey Turbanov aturbanov at openjdk.org
Mon Nov 17 09:11:43 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.

This pull request has now been integrated.

Changeset: 69e30244
Author:    Andrey Turbanov <aturbanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/69e30244c0c359e7108acd36d903fa22970822b9
Stats:     20 lines in 1 file changed: 7 ins; 9 del; 4 mod

8349157: Unnecessary Hashtable usage in XKeysym.javaKeycode2KeysymHash

Reviewed-by: aivanov, serb

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

PR: https://git.openjdk.org/jdk/pull/23347


More information about the client-libs-dev mailing list