On Fri, 1 Nov 2024 13:32:07 GMT, Andrey Turbanov <aturba...@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.

This pull request has now been integrated.

Changeset: e4a34e96
Author:    Andrey Turbanov <aturba...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/e4a34e96cd7eb227bd43e55d370d0b18d365ae1b
Stats:     16 lines in 1 file changed: 0 ins; 5 del; 11 mod

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

Reviewed-by: aivanov, azvegint

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

PR: https://git.openjdk.org/jdk/pull/21825

Reply via email to