On Fri, 1 Nov 2024 14:02:52 GMT, Andrey Turbanov <[email protected]> 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 looks good to me. It aligns `javax.swing.text.html.parser.Entity` to 
`javax.swing.text.html.parser.Element` which you did in #21825.

@turbanoff Could you re-open the issue?
I'll run the tests with this change in our CI.

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

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

Reply via email to