File 00-doxia1.patch of Package checkstyle
diff -up checkstyle-checkstyle-10.21.3/src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateSink.java.p00 checkstyle-checkstyle-10.21.3/src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateSink.java
--- checkstyle-checkstyle-10.21.3/src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateSink.java.p00 2025-02-24 17:48:42.707811288 +0300
+++ checkstyle-checkstyle-10.21.3/src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateSink.java 2025-02-24 17:55:34.521306148 +0300
@@ -54,15 +54,6 @@ public class XdocsTemplateSink extends X
}
/**
- * Place the XML declaration at the top of the file.
- */
- @Override
- public void body() {
- write("<?xml version=\"1.0\" encoding=\"" + encoding + "\"?>");
- writeEOL();
- }
-
- /**
* Place a newline at the end of the file, flush the writer, and reset the sink.
*/
@Override
@@ -73,28 +64,6 @@ public class XdocsTemplateSink extends X
}
/**
- * Write an external link. We override this method because the default implementation
- * adds a {@code class="external-link"} attribute to the link which we don't want.
- *
- * @param href the link.
- */
- @Override
- public void link(String href) {
- final MutableAttributeSet attributes = new SinkEventAttributeSet();
- attributes.addAttribute(SinkEventAttributes.HREF, href);
- writeStartTag(HtmlMarkup.A, attributes);
- }
-
- /**
- * Write a table row tag. We override this method because the default implementation
- * adds a {@code align="top"} attribute to the row which we don't want.
- */
- @Override
- public void tableRow() {
- writeStartTag(TR);
- }
-
- /**
* Write a table tag. We override this method because the default implementation
* adds different attributes which we don't want. We ignore the parameters
* because we don't need them, but the default implementation will take them