slachiewicz opened a new pull request, #1097: URL: https://github.com/apache/maven-doxia/pull/1097
Step 3 of #1092, additive. `HtmlTag` carries a tag name and an explicit `isBlock`, and `AbstractXmlSink` gains `HtmlTag` overloads of `writeStartTag`, `writeEndTag` and `writeSimpleTag`; the `HTML.Tag`-typed ones are deprecated for 2.3.0 and delegate. Step 4 then retypes the `HtmlMarkup` constants and drops the Swing supertype. The block values are those the `HtmlMarkup` constants report today, copied unchanged: 24 of 117 tags are block, and `HtmlTagTest` reflects over `HtmlMarkup` to assert every one still answers the same, so a value cannot drift unnoticed and no generated site's whitespace moves. A tag Doxia does not declare — `dir` and `noframes` are the only block ones Swing has and Doxia lacks — keeps the block value of the `Tag` it was written with. One source-compatibility wrinkle for subclasses: `writeStartTag(null)` and `writeEndTag(null)` are now ambiguous and need a cast. Both call sites in this repo were in `AbstractXmlSinkTest`. Verified: `mvn install` → BUILD SUCCESS, all module suites green, japicmp clean on doxia-sink-api and doxia-core. *This change was created with AI assistance.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
