This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new a1761e768b4c CAMEL-21356: camel-xml-io-util - remove the empty <p>
tags doclint reports (#31070)
a1761e768b4c is described below
commit a1761e768b4c6de167d5af283ed6cea630d4cde0
Author: dhairya05 <[email protected]>
AuthorDate: Mon Nov 30 14:02:24 2026 +0530
CAMEL-21356: camel-xml-io-util - remove the empty <p> tags doclint reports
(#31070)
doclint is switched off in two places in the root pom.xml, and CAMEL-21356
tracks clearing what it would report so it can go back on.
XmlStreamReader and XmlStreamReaderException account for 21 of those
reports,
all the same pattern: the description ends with a <p> that never gets any
content, sitting just before the tag block, which doclint flags as
"empty <p> tag" and which renders as a stray empty paragraph above the
parameter table.
Only the dangling ones are removed, where the next meaningful line is a
@-tag or the end of the comment. The <p> tags that genuinely separate two
paragraphs of prose are kept: 13 of 65 in XmlStreamReader and 8 of 11 in
XmlStreamReaderException. That 13 + 8 matches the 21 findings exactly, so
nothing reported is left and nothing unreported was removed.
Javadoc only; no prose reworded and no code touched.
Co-Authored-By: Claude <[email protected]>
---
.../java/org/apache/camel/xml/io/util/XmlStreamReader.java | 13 -------------
.../apache/camel/xml/io/util/XmlStreamReaderException.java | 8 --------
2 files changed, 21 deletions(-)
diff --git
a/core/camel-xml-io-util/src/main/java/org/apache/camel/xml/io/util/XmlStreamReader.java
b/core/camel-xml-io-util/src/main/java/org/apache/camel/xml/io/util/XmlStreamReader.java
index c1d5473f71a7..da73092a67eb 100644
---
a/core/camel-xml-io-util/src/main/java/org/apache/camel/xml/io/util/XmlStreamReader.java
+++
b/core/camel-xml-io-util/src/main/java/org/apache/camel/xml/io/util/XmlStreamReader.java
@@ -106,7 +106,6 @@ public class XmlStreamReader extends Reader {
* UTF-8.
* <p>
* It does a lenient charset encoding detection, check the constructor
with the lenient parameter for details.
- * <p>
*
* @param file File to create a Reader from.
* @throws IOException thrown if there is a problem reading the file.
@@ -121,7 +120,6 @@ public class XmlStreamReader extends Reader {
* It follows the same logic used for files.
* <p>
* It does a lenient charset encoding detection, check the constructor
with the lenient parameter for details.
- * <p>
*
* @param is InputStream to create a Reader from.
* @throws IOException thrown if there is a problem reading the stream.
@@ -147,7 +145,6 @@ public class XmlStreamReader extends Reader {
* Else 'UTF-8' is used.
* <p>
* If lenient detection is indicated an XmlStreamReaderException is never
thrown.
- * <p>
*
* @param is InputStream to create a Reader from.
* @param lenient indicates if the charset encoding
detection should be relaxed.
@@ -190,7 +187,6 @@ public class XmlStreamReader extends Reader {
* Else 'UTF-8' is used.
* <p>
* If lenient detection is indicated an XmlStreamReaderException is never
thrown.
- * <p>
*
* @param is InputStream to create a Reader from.
* @param lenient indicates if the charset encoding
detection should be relaxed.
@@ -211,7 +207,6 @@ public class XmlStreamReader extends Reader {
* an InputStream with content-type.
* <p>
* It does a lenient charset encoding detection, check the constructor
with the lenient parameter for details.
- * <p>
*
* @param url URL to create a Reader from.
* @throws IOException thrown if there is a problem reading the stream of
the URL.
@@ -230,7 +225,6 @@ public class XmlStreamReader extends Reader {
* an InputStream with content-type.
* <p>
* It does a lenient charset encoding detection, check the constructor
with the lenient parameter for details.
- * <p>
*
* @param url URL to create a Reader from.
* @param requestHeaders optional Map of headers to set on http request.
@@ -250,7 +244,6 @@ public class XmlStreamReader extends Reader {
* used for an InputStream with content-type.
* <p>
* It does a lenient charset encoding detection, check the constructor
with the lenient parameter for details.
- * <p>
*
* @param conn URLConnection to create a Reader from.
* @throws IOException thrown if there is a problem reading the stream of
the URLConnection.
@@ -269,7 +262,6 @@ public class XmlStreamReader extends Reader {
* used for an InputStream with content-type.
* <p>
* It does a lenient charset encoding detection, check the constructor
with the lenient parameter for details.
- * <p>
*
* @param conn URLConnection to create a Reader from.
* @param requestHeaders optional Map of headers to set on http request.
@@ -308,7 +300,6 @@ public class XmlStreamReader extends Reader {
* encoding mandated by the content-type MIME type.
* <p>
* It does a lenient charset encoding detection, check the constructor
with the lenient parameter for details.
- * <p>
*
* @param is InputStream to create the reader from.
* @param httpContentType content-type header to use for the resolution
of the charset encoding.
@@ -337,7 +328,6 @@ public class XmlStreamReader extends Reader {
* Else 'UTF-8' is used.
* <p>
* If lenient detection is indicated and XmlStreamReaderException is never
thrown.
- * <p>
*
* @param is InputStream to create the reader from.
* @param httpContentType content-type header to use for the
resolution of the charset encoding.
@@ -383,7 +373,6 @@ public class XmlStreamReader extends Reader {
* Else 'UTF-8' is used.
* <p>
* If lenient detection is indicated and XmlStreamReaderException is never
thrown.
- * <p>
*
* @param is InputStream to create the reader from.
* @param httpContentType content-type header to use for the
resolution of the charset encoding.
@@ -424,7 +413,6 @@ public class XmlStreamReader extends Reader {
/**
* Returns the charset encoding of the XmlReader.
- * <p>
*
* @return charset encoding.
*/
@@ -468,7 +456,6 @@ public class XmlStreamReader extends Reader {
/**
* Closes the XmlReader stream.
- * <p>
*
* @throws IOException thrown if there was a problem closing the stream.
*/
diff --git
a/core/camel-xml-io-util/src/main/java/org/apache/camel/xml/io/util/XmlStreamReaderException.java
b/core/camel-xml-io-util/src/main/java/org/apache/camel/xml/io/util/XmlStreamReaderException.java
index b99ef118007b..934424fb8345 100644
---
a/core/camel-xml-io-util/src/main/java/org/apache/camel/xml/io/util/XmlStreamReaderException.java
+++
b/core/camel-xml-io-util/src/main/java/org/apache/camel/xml/io/util/XmlStreamReaderException.java
@@ -58,7 +58,6 @@ public class XmlStreamReaderException extends IOException {
* Creates an exception instance if the charset encoding could not be
determined.
* <p>
* Instances of this exception are thrown by the XmlReader.
- * <p>
*
* @param msg message describing the reason for the exception.
* @param bomEnc BOM encoding.
@@ -75,7 +74,6 @@ public class XmlStreamReaderException extends IOException {
* Creates an exception instance if the charset encoding could not be
determined.
* <p>
* Instances of this exception are thrown by the XmlReader.
- * <p>
*
* @param msg message describing the reason for the exception.
* @param ctMime MIME type in the content-type.
@@ -99,7 +97,6 @@ public class XmlStreamReaderException extends IOException {
/**
* Returns the BOM encoding found in the InputStream.
- * <p>
*
* @return the BOM encoding, null if none.
*/
@@ -109,7 +106,6 @@ public class XmlStreamReaderException extends IOException {
/**
* Returns the encoding guess based on the first bytes of the InputStream.
- * <p>
*
* @return the encoding guess, null if it couldn't be guessed.
*/
@@ -119,7 +115,6 @@ public class XmlStreamReaderException extends IOException {
/**
* Returns the encoding found in the XML prolog of the InputStream.
- * <p>
*
* @return the encoding of the XML prolog, null if none.
*/
@@ -129,7 +124,6 @@ public class XmlStreamReaderException extends IOException {
/**
* Returns the MIME type in the content-type used to attempt determining
the encoding.
- * <p>
*
* @return the MIME type in the content-type, null if there was not
content-type or the encoding detection did not
* involve HTTP.
@@ -140,7 +134,6 @@ public class XmlStreamReaderException extends IOException {
/**
* Returns the encoding in the content-type used to attempt determining
the encoding.
- * <p>
*
* @return the encoding in the content-type, null if there was not
content-type, no encoding in it or the encoding
* detection did not involve HTTP.
@@ -152,7 +145,6 @@ public class XmlStreamReaderException extends IOException {
/**
* Returns the unconsumed InputStream to allow the application to do an
alternate encoding detection on the
* InputStream.
- * <p>
*
* @return the unconsumed InputStream.
*/