Integrated: 8347370: Unnecessary Hashtable usage in javax.swing.text.html.HTML

Andrey Turbanov aturbanov at openjdk.org
Thu Jan 16 11:41:39 UTC 2025


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

> The Hashtable `javax.swing.text.html.HTML.scMapping` is modified only within `<clinit>` block.
> We can replace it with immutable map to avoid Hashtable synchronization overhead.

This pull request has now been integrated.

Changeset: 24de9dee
Author:    Andrey Turbanov <aturbanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/24de9dee80738fe6ab1fc726b071546c85bbf79a
Stats:     20 lines in 1 file changed: 10 ins; 8 del; 2 mod

8347370: Unnecessary Hashtable usage in javax.swing.text.html.HTML

Reviewed-by: aivanov, azvegint

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

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


More information about the client-libs-dev mailing list