RFR: 8348170: Unnecessary Hashtable usage in CSS.styleConstantToCssMap
Andrey Turbanov
aturbanov at openjdk.org
Fri Jan 24 14:08:48 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.
Thank you for review!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23149#issuecomment-2612609426
More information about the client-libs-dev
mailing list