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 26d36863582f CAMEL-21356: tooling - fix the last three doclint errors
in core and tooling (#31075)
26d36863582f is described below
commit 26d36863582fef06311236d9c423c45b2d5801f0
Author: dhairya05 <[email protected]>
AuthorDate: Mon Nov 30 14:02:56 2026 +0530
CAMEL-21356: tooling - fix the last three doclint errors in core and
tooling (#31075)
The last three doclint findings under core/ and tooling/ outside the missing
category, one per module.
package-info.java wraps its content in <p> ... </p>, but the content has a
<ul>, which implicitly closes an open <p>. By the time the </p> is reached
there is no paragraph left to close, so doclint reports the stray end tag.
The opening <p> is left alone: doclint does not object to it.
JsonRecordSupport uses <p/>, which is not valid HTML5; a bare <p> is the
Javadoc paragraph break.
RestDslGenerator uses <tt>, removed in HTML5. {@code ...} is safe for its
content, direct:${operationId}: {@code} counts braces, so the balanced {} of
${operationId} does not end the tag early.
All three modules report 0 findings under -Xdoclint:all,-missing afterwards.
Javadoc only.
Co-Authored-By: Claude <[email protected]>
---
.../src/main/java/org/apache/camel/tooling/maven/package-info.java | 1 -
.../src/main/java/org/apache/camel/util/json/JsonRecordSupport.java | 2 +-
.../main/java/org/apache/camel/generator/openapi/RestDslGenerator.java | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git
a/tooling/camel-tooling-maven/src/main/java/org/apache/camel/tooling/maven/package-info.java
b/tooling/camel-tooling-maven/src/main/java/org/apache/camel/tooling/maven/package-info.java
index 0b03141b7ded..28cc3239b69a 100644
---
a/tooling/camel-tooling-maven/src/main/java/org/apache/camel/tooling/maven/package-info.java
+++
b/tooling/camel-tooling-maven/src/main/java/org/apache/camel/tooling/maven/package-info.java
@@ -22,6 +22,5 @@
* <li>catalog/camel-catalog-maven (previously using Ivy/Grape)</li>
* <li>dsl/camel-kamelet-main (previously using Shrinkwrap)</li>
* </ul>
- * </p>
*/
package org.apache.camel.tooling.maven;
diff --git
a/tooling/camel-util-json/src/main/java/org/apache/camel/util/json/JsonRecordSupport.java
b/tooling/camel-util-json/src/main/java/org/apache/camel/util/json/JsonRecordSupport.java
index 2ecfa97f4c4b..01f5f2abf50c 100644
---
a/tooling/camel-util-json/src/main/java/org/apache/camel/util/json/JsonRecordSupport.java
+++
b/tooling/camel-util-json/src/main/java/org/apache/camel/util/json/JsonRecordSupport.java
@@ -26,7 +26,7 @@ import java.util.Map;
* Reflectively converts a Java {@link Record} into a {@link JsonObject}, so a
record can be used as the single source
* of truth for both a runtime JSON payload and (via reflection over the
record's structure) a JSON Schema describing
* it.
- * <p/>
+ * <p>
* A record component whose value is {@code null} is omitted from the
resulting {@link JsonObject}, mirroring the common
* "only include a field if present" convention. Supported component value
types: primitives, {@link String}, boxed
* numbers/{@link Boolean}, {@link Enum} (converted via {@link Enum#name()}),
nested {@link Record}s,
diff --git
a/tooling/openapi-rest-dsl-generator/src/main/java/org/apache/camel/generator/openapi/RestDslGenerator.java
b/tooling/openapi-rest-dsl-generator/src/main/java/org/apache/camel/generator/openapi/RestDslGenerator.java
index ab2d0e7b1dad..ccca5e3de7de 100644
---
a/tooling/openapi-rest-dsl-generator/src/main/java/org/apache/camel/generator/openapi/RestDslGenerator.java
+++
b/tooling/openapi-rest-dsl-generator/src/main/java/org/apache/camel/generator/openapi/RestDslGenerator.java
@@ -102,7 +102,7 @@ public abstract class RestDslGenerator<G> {
/**
* Syntax to use for to uri.
*
- * The default is <tt>direct:${operationId}</tt>
+ * The default is {@code direct:${operationId}}
*/
public G withDestinationToSyntax(final String destinationToSyntax) {
this.destinationToSyntax = destinationToSyntax;