Integrated: 8346036: Unnecessary Hashtable usage in javax.swing.text.html.parser.Entity

Andrey Turbanov aturbanov at openjdk.org
Thu Jan 9 12:50:53 UTC 2025


On Fri, 1 Nov 2024 14:02:52 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> The Hashtable `javax.swing.text.html.parser.Entity#entityTypes` is modified only within `<clinit>` block.
> We can replace it with immutable map to avoid Hashtable synchronization overhead.
> Similar to what we did in #21825.

This pull request has now been integrated.

Changeset: 9c72dedd
Author:    Andrey Turbanov <aturbanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/9c72dedd072e838d363d0eec364514584fd4e2e6
Stats:     26 lines in 1 file changed: 0 ins; 11 del; 15 mod

8346036: Unnecessary Hashtable usage in javax.swing.text.html.parser.Entity

Reviewed-by: aivanov, azvegint

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

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


More information about the client-libs-dev mailing list