Integrated: 8348648: Unnecessary Hashtable usage in javax.swing.text.html.CSS.LengthUnit

Andrey Turbanov aturbanov at openjdk.org
Thu Jan 30 17:50:51 UTC 2025


On Mon, 20 Jan 2025 13:07:19 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> Two `Hashtable`'s in `javax.swing.text.html.CSS.LengthUnit` class are modified only within `<clinit>` block:
> 1. lengthMapping
> 2. w3cLengthMapping
> 
> We can replace them with immutable maps to avoid Hashtable synchronization overhead.

This pull request has now been integrated.

Changeset: cc775b16
Author:    Andrey Turbanov <aturbanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/cc775b16208bba4df98485de0970513baa0495a7
Stats:     20 lines in 1 file changed: 0 ins; 2 del; 18 mod

8348648: Unnecessary Hashtable usage in javax.swing.text.html.CSS.LengthUnit

Reviewed-by: aivanov, azvegint, serb

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

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


More information about the client-libs-dev mailing list