RFR: 8346036: Unnecessary Hashtable usage in javax.swing.text.html.parser.Entity
Andrey Turbanov
aturbanov at openjdk.org
Wed Dec 11 20:08:11 UTC 2024
The Hashtable `javax.swing.text.html.parser.Entity#entityTypes` is modified only within `<clinit>` block.
We can replace it with immutable map to avoid Hashtable synchronization overhead.
-------------
Commit messages:
- [PATCH] Unnecessary Hashtable usage in javax.swing.text.html.parser.Entity
Changes: https://git.openjdk.org/jdk/pull/21831/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21831&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8346036
Stats: 26 lines in 1 file changed: 0 ins; 11 del; 15 mod
Patch: https://git.openjdk.org/jdk/pull/21831.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/21831/head:pull/21831
PR: https://git.openjdk.org/jdk/pull/21831
More information about the client-libs-dev
mailing list