Dhairya-007 opened a new pull request, #31075:
URL: https://github.com/apache/camel/pull/31075

   # Rationale for this change
   
   The last three doclint findings under `core/` and `tooling/` outside the 
`missing` category, one per module. With #31070, #31072 and #31074, this clears 
both trees — which is a prerequisite for 
[CAMEL-21356](https://issues.apache.org/jira/browse/CAMEL-21356), re-enabling 
doclint (`<doclint>none</doclint>`, twice in the root `pom.xml`).
   
   | Module | File | Finding |
   | --- | --- | --- |
   | `camel-tooling-maven` | `maven/package-info.java:25` | `error: unexpected 
end tag: </p>` |
   | `camel-util-json` | `json/JsonRecordSupport.java:29` | `error: 
self-closing element not allowed` |
   | `openapi-rest-dsl-generator` | `openapi/RestDslGenerator.java:105` | 
`error: tag not supported in HTML5: tt` |
   
   **`package-info.java`** wraps its content in `<p> ... </p>`, but the content 
includes a `<ul>`. In HTML a `<ul>` implicitly closes an open `<p>`, so by the 
time the `</p>` is reached there is no paragraph left to close, and doclint 
reports the stray end tag. Removing the `</p>` is the fix; the opening `<p>` is 
left as it is, since doclint does not object to it and leaving it keeps the 
change to the one line that is actually wrong.
   
   **`JsonRecordSupport`** uses `<p/>`. Self-closing tags are not valid HTML5; 
a bare `<p>` is the Javadoc paragraph break.
   
   **`RestDslGenerator`** uses `<tt>`, removed in HTML5. Worth noting why 
`{@code ...}` is safe here: the content is `direct:${operationId}`, and 
`{@code}` is brace-counting, so the balanced `{}` of `${operationId}` does not 
terminate the tag early. The doclint run below confirms it parses.
   
   ## Are these changes tested?
   
   Javadoc with the linting the ticket wants restored, per module, on JDK 21:
   
   ```console
   $ for m in tooling/camel-tooling-maven tooling/camel-util-json 
tooling/openapi-rest-dsl-generator; do
       ./mvnw -pl $m javadoc:javadoc -DfailOnError=false \
         -DadditionalJOption=-Xdoclint:all,-missing
     done
   camel-tooling-maven:         0 findings
   camel-util-json:             0 findings
   openapi-rest-dsl-generator:  0 findings
   ```
   
   Before the change each reported the one error in the table.
   
   Three lines, three files, Javadoc only — no code, no signatures, no 
behaviour.
   
   ## Scope
   
   This does not resolve CAMEL-21356. It closes out `core/` and `tooling/`; 
`components/` and `dsl/` are not surveyed, and the `missing` category remains 
large (roughly 100 findings in `camel-api` alone, mostly `no @param for <T>` on 
generic type parameters). Whoever re-enables doclint will most likely want 
`all,-missing`, which is the setting I measured against throughout.
   
   ## Are there any user-facing changes?
   
   No, beyond the generated Javadoc rendering 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 before starting; 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]

Reply via email to