RFR: 8338133: Cleanup direct use of `new HtmlTree`
Jonathan Gibbons
jjg at openjdk.org
Tue Sep 3 18:52:18 UTC 2024
On Mon, 2 Sep 2024 11:20:24 GMT, Hannes Wallnöfer <hannesw at openjdk.org> wrote:
> The inconsistent use of HtmlTree has bugged me for a long time.
Yes, me too. It helped to think of adding `HtmlTree.of(HtmlTag)` for the outlier cases. and we might want to add overloads that take an `HtmlId` and/or `HtmlStyle`.
A separate implementation-cleanup might be to regularize the use of `of` and/or constructors within `HtmlTree` itself, but that is of lesser use than regularizing client use of the class.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20778#issuecomment-2327196757
More information about the javadoc-dev
mailing list