RFR: 8345616: Unnecessary Hashtable usage in javax.swing.text.html.parser.Element
Andrey Turbanov
aturbanov at openjdk.org
Wed Dec 11 08:24:37 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.
Can I get a second review, please?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21825#issuecomment-2534852929
More information about the client-libs-dev
mailing list