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