RFR: 8348170: Unnecessary Hashtable usage in CSS.styleConstantToCssMap

Alexey Ivanov aivanov at openjdk.org
Tue Jan 21 21:34:35 UTC 2025


On Thu, 16 Jan 2025 11:53:18 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> There is a field `javax.swing.text.html.CSS#styleConstantToCssMap` which uses legacy `Hashtable` class.
> As this map is read-only and all its content is initialized in `<clinit>` we can safely use immutable `Map` instead.

Marked as reviewed by aivanov (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/23149#pullrequestreview-2565734767


More information about the client-libs-dev mailing list