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 61b98e6b7b22 CAMEL-21356: core - fix the two HTML errors doclint 
reports in camel-base and camel-util (#31072)
61b98e6b7b22 is described below

commit 61b98e6b7b22bd19cc263615b8eb3c58c39f75c0
Author: dhairya05 <[email protected]>
AuthorDate: Mon Nov 30 15:06:36 2026 +0530

    CAMEL-21356: core - fix the two HTML errors doclint reports in camel-base 
and camel-util (#31072)
    
    doclint is off in two places in the root pom.xml; CAMEL-21356 tracks 
clearing
    what it reports. Running it over every module under core/ and tooling/ gives
    18 findings in 6 modules. These are the two in core/, both error: level:
    
    - DateTimeConverter writes paragraph breaks as <p/>. Self-closing tags are
      not valid HTML5 ("error: self-closing element not allowed", x3). A bare 
<p>
      is the Javadoc paragraph break, and what the rest of this codebase uses.
    - MimeTypeHelper wraps literals in <tt>, which HTML5 removed ("error: tag 
not
      supported in HTML5: tt", x5). {@code ...} is the Javadoc replacement and
      escapes its content, which suits these values (application/json; q=0.5).
    
    None of the five <tt> values contains {, } or @, so none changes meaning
    inside {@code ...}.
    
    Javadoc only; both modules now report 0 findings under 
-Xdoclint:all,-missing.
    
    Co-Authored-By: Claude <[email protected]>
---
 .../main/java/org/apache/camel/converter/DateTimeConverter.java   | 6 +++---
 .../src/main/java/org/apache/camel/util/MimeTypeHelper.java       | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/core/camel-base/src/main/java/org/apache/camel/converter/DateTimeConverter.java
 
b/core/camel-base/src/main/java/org/apache/camel/converter/DateTimeConverter.java
index ccc8da04f1c9..395952d413cc 100644
--- 
a/core/camel-base/src/main/java/org/apache/camel/converter/DateTimeConverter.java
+++ 
b/core/camel-base/src/main/java/org/apache/camel/converter/DateTimeConverter.java
@@ -73,7 +73,7 @@ public final class DateTimeConverter {
      * Converts an ISO-8601 date-time with an offset, such as {@code 
2026-11-18T23:00:00+01:00} or
      * {@code 2026-11-18T22:00:00Z}, so that an option of this type can be set 
in an endpoint URI or as a property. An
      * empty value converts to {@code null}.
-     * <p/>
+     * <p>
      * An ISO-8601 date-time never contains a space, so a space is read as a 
{@code +}: in an endpoint URI the {@code +}
      * of a positive offset is decoded to a space, unless the value is written 
as {@code %2B} or in {@code RAW(...)}.
      */
@@ -87,7 +87,7 @@ public final class DateTimeConverter {
      * Converts an ISO-8601 date-time with an offset and an optional zone id, 
such as
      * {@code 2026-11-18T23:00:00+01:00[Europe/Paris]} or {@code 
2026-11-18T22:00:00Z}, so that an option of this type
      * can be set in an endpoint URI or as a property. An empty value converts 
to {@code null}.
-     * <p/>
+     * <p>
      * An ISO-8601 date-time never contains a space, so a space is read as a 
{@code +}: in an endpoint URI the {@code +}
      * of a positive offset is decoded to a space, unless the value is written 
as {@code %2B} or in {@code RAW(...)}.
      */
@@ -100,7 +100,7 @@ public final class DateTimeConverter {
     /**
      * Converts an ISO-8601 instant, such as {@code 2026-11-18T22:00:00Z} or 
{@code 2026-11-18T23:00:00+01:00}, so that
      * an option of this type can be set in an endpoint URI or as a property. 
An empty value converts to {@code null}.
-     * <p/>
+     * <p>
      * An ISO-8601 date-time never contains a space, so a space is read as a 
{@code +}: in an endpoint URI the {@code +}
      * of a positive offset is decoded to a space, unless the value is written 
as {@code %2B} or in {@code RAW(...)}.
      */
diff --git 
a/core/camel-util/src/main/java/org/apache/camel/util/MimeTypeHelper.java 
b/core/camel-util/src/main/java/org/apache/camel/util/MimeTypeHelper.java
index 5e06972e59fc..36bc06553eec 100644
--- a/core/camel-util/src/main/java/org/apache/camel/util/MimeTypeHelper.java
+++ b/core/camel-util/src/main/java/org/apache/camel/util/MimeTypeHelper.java
@@ -25,10 +25,10 @@ public class MimeTypeHelper {
     /**
      * Sanitizes the mime types after URL decoding.
      * <p>
-     * URL decoding turns a plus sign into a space, so a space inside the 
<tt>type/subtype</tt> token (such as
-     * <tt>application/xslt xml</tt>) is turned back into a plus sign. The 
parameters of a media type (such as
-     * <tt>application/json; q=0.5</tt>) keep their meaning: the spaces around 
<tt>;</tt> and <tt>=</tt> are removed,
-     * and a quoted parameter value is kept as is.
+     * URL decoding turns a plus sign into a space, so a space inside the 
{@code type/subtype} token (such as
+     * {@code application/xslt xml}) is turned back into a plus sign. The 
parameters of a media type (such as
+     * {@code application/json; q=0.5}) keep their meaning: the spaces around 
{@code ;} and {@code =} are removed, and a
+     * quoted parameter value is kept as is.
      *
      * @param  types mime types such as from HTTP Accept header
      * @return       the sanitized mime types

Reply via email to