On Fri, 1 Nov 2024 14:02:52 GMT, Andrey Turbanov <[email protected]> wrote:
> 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. > Similar to what we did in #21825. This pull request has now been integrated. Changeset: 9c72dedd Author: Andrey Turbanov <[email protected]> URL: https://git.openjdk.org/jdk/commit/9c72dedd072e838d363d0eec364514584fd4e2e6 Stats: 26 lines in 1 file changed: 0 ins; 11 del; 15 mod 8346036: Unnecessary Hashtable usage in javax.swing.text.html.parser.Entity Reviewed-by: aivanov, azvegint ------------- PR: https://git.openjdk.org/jdk/pull/21831
