RFR: 8347370: Unnecessary Hashtable usage in javax.swing.text.html.HTML

Alexander Zvegintsev azvegint at openjdk.org
Tue Jan 14 15:55:48 UTC 2025


On Fri, 1 Nov 2024 20:13:31 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> The Hashtable `javax.swing.text.html.HTML.scMapping` is modified only within `<clinit>` block.
> We can replace it with immutable map to avoid Hashtable synchronization overhead.

Marked as reviewed by azvegint (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/21842#pullrequestreview-2550184018


More information about the client-libs-dev mailing list