On Wed, 24 Jul 2024 22:09:46 GMT, Jonathan Gibbons <j...@openjdk.org> wrote:
>> Please review a change to reorganize the internal low-level support for HTML >> in the jdk.javadoc module. >> >> Hitherto, there are two separate sets of classes for low-level support for >> HTML in the `jdk.javadoc` module: one, in doclint, focused on reading and >> checking classes, the other, in the standard doclet, focused on generating >> HTML. This PR merges those two sets, into a new package >> `jdk.javadoc.internal.html` that is now used by both `doclint` and the >> standard doclet. >> >> There was a naming "anti-clash" -- `HtmlTag` in `doclint` vs `TagName` in >> the standard doclet. The resolution is to use `HtmlTag`, since the merged >> class is more than just the tag name. >> >> A few minor bugs were found and fixed. Other minor cleanup was done, but >> otherwise, there should be no big surprises here. But, one small item of >> note: `enum HtmlStyle` was split into `interface HtmlStyle` and `enum >> HtmlStyles implements HtmlStyle` to avoid having a doclet-specific enum >> class in the new `internal.html` package. The naming follows `HtmlId` and >> `HtmlIds`. >> >> There is no attempt at this time to simplify `HtmlTag` and `HtmlAttr` to >> remove support for older versions of HTML. > > Jonathan Gibbons has updated the pull request incrementally with one > additional commit since the last revision: > > Cleanup use of HtmlStyle and HtmlStyles Changes requested by hannesw (Reviewer). src/jdk.javadoc/share/classes/jdk/javadoc/internal/html/HtmlAttr.java line 25: > 23: * questions. > 24: */ > 25: Copyright header and doc comments were removed here (I guess by accident). src/jdk.javadoc/share/classes/jdk/javadoc/internal/html/HtmlStyle.java line 5: > 3: public interface HtmlStyle { > 4: String cssName(); > 5: } Copyright header and doc comments are missing in this file. ------------- PR Review: https://git.openjdk.org/jdk/pull/19916#pullrequestreview-2198994299 PR Review Comment: https://git.openjdk.org/jdk/pull/19916#discussion_r1691263216 PR Review Comment: https://git.openjdk.org/jdk/pull/19916#discussion_r1691261610