RFR: 8345616: Unnecessary Hashtable usage in javax.swing.text.html.parser.Element

Alexey Ivanov aivanov at openjdk.org
Fri Dec 6 14:40:36 UTC 2024


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

> The Hashtable `javax.swing.text.html.parser.Element#contentTypes` is initialized only within `<clinit>` block.
> We can replace it with immutable map to avoid Hashtable `synchronized` overhead.

Marked as reviewed by aivanov (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/21825#pullrequestreview-2485009600


More information about the client-libs-dev mailing list