On Mon, 20 Jan 2025 13:07:19 GMT, Andrey Turbanov <aturba...@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 <aturba...@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

Reply via email to