RFR: 8346036: Unnecessary Hashtable usage in javax.swing.text.html.parser.Entity
Andrey Turbanov
aturbanov at openjdk.org
Thu Jan 9 12:50:51 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.
Thank you for review!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21831#issuecomment-2580070512
More information about the client-libs-dev
mailing list