Dhairya-007 opened a new pull request, #31072: URL: https://github.com/apache/camel/pull/31072
# Rationale for this change [CAMEL-21356](https://issues.apache.org/jira/browse/CAMEL-21356) tracks clearing the Javadoc problems that keep doclint switched off (`<doclint>none</doclint>`, twice in the root `pom.xml`). I ran doclint over every module under `core/` and `tooling/` and it reports **18 findings in 6 modules**. These are the two `core/` ones, both hard `error:` rather than warnings: | File | Finding | Count | | --- | --- | --- | | `camel-base` `converter/DateTimeConverter.java` | `error: self-closing element not allowed` | 3 | | `camel-util` `util/MimeTypeHelper.java` | `error: tag not supported in HTML5: tt` | 5 | `DateTimeConverter` writes paragraph breaks as `<p/>`. Self-closing tags are not valid HTML5, and Javadoc has used a bare `<p>` for a paragraph break for a long time — which is what the rest of this codebase does, including `MimeTypeHelper` and `XmlStreamReader` two modules over. `MimeTypeHelper` wraps literals in `<tt>`, a tag HTML5 removed. The replacement in Javadoc is `{@code ...}`, which also escapes its content, so it is the better form for the values here (`application/json; q=0.5`, `;`, `=`). ## What changed ```diff - * <p/> + * <p> ``` ```diff - * URL decoding turns a plus sign into a space, so a space inside the <tt>type/subtype</tt> token (such as + * URL decoding turns a plus sign into a space, so a space inside the {@code type/subtype} token (such as ``` Six lines, two files, Javadoc only. No prose reworded, no code touched. I checked that none of the five `<tt>` values contains `{`, `}` or `@`, so none of them changes meaning inside `{@code ...}`. ## Are these changes tested? Javadoc generation per module on JDK 21, with the linting the ticket wants restored: ```console # before $ ./mvnw -pl core/camel-base javadoc:javadoc -DadditionalJOption=-Xdoclint:all,-missing DateTimeConverter.java:76: error: self-closing element not allowed DateTimeConverter.java:90: error: self-closing element not allowed DateTimeConverter.java:103: error: self-closing element not allowed $ ./mvnw -pl core/camel-util javadoc:javadoc -DadditionalJOption=-Xdoclint:all,-missing MimeTypeHelper.java:28: error: tag not supported in HTML5: tt MimeTypeHelper.java:29: error: tag not supported in HTML5: tt MimeTypeHelper.java:30: error: tag not supported in HTML5: tt (x3 on this line) # after camel-base: 0 findings camel-util: 0 findings ``` ## Scope, and what is left This does not resolve CAMEL-21356. With #31070 (the empty `<p>` tags in `camel-xml-io-util`) merged alongside it, `core/` is clear of doclint findings outside the `missing` category; the remaining 10 are in `tooling/` — `camel-tooling-model` (7), `openapi-rest-dsl-generator`, `camel-util-json` and `camel-tooling-maven` (1 each). I have not surveyed `components/` or `dsl/`. One thing for whoever re-enables doclint: the `missing` category is large on its own (around 100 findings in `camel-api` alone, mostly `no @param for <T>` on generics), so `all,-missing` is probably the realistic setting, and that is what I measured against. ## Are there any user-facing changes? Only that the generated Javadoc renders these paragraph breaks and literals correctly. ## Note on the JIRA ticket CAMEL-21356 is Open and unassigned. `CLAUDE.md` asks an agent to assign it and move it to In Progress first; I have no ASF JIRA account, so I could not. Please leave it open. --- _Claude Code on behalf of Dhairya-007_ -- 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]
