On Tue, 12 Nov 2024 09:13:07 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:
> We can use Hashtable.putIfAbsent instead of pair `get`/`put` methods. > It's faster and cleaner. src/java.desktop/share/classes/javax/swing/text/html/CSS.java line 737: > 735: valueMapper); > 736: Object generic = new CssValue(); > 737: for (Attribute key : Attribute.allAttributes) { It seems that the entire method references the Attribute class via the CSS prefix. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/22032#discussion_r2065032068