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

Alexander Zvegintsev azvegint at openjdk.org
Wed Jan 8 19:26:46 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.

Marked as reviewed by azvegint (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/21831#pullrequestreview-2538018534


More information about the client-libs-dev mailing list