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

   # Rationale for this change
   
   [CAMEL-21356](https://issues.apache.org/jira/browse/CAMEL-21356) tracks 
clearing the Javadoc problems that keep doclint off. `camel-tooling-model` is 
the largest single contributor outside the `missing` category — 5 of the 18 
findings I measured across `core/` and `tooling/`, all `error:` level:
   
   | File | Finding |
   | --- | --- |
   | `BodyTypeModel.java:27` | `error: self-closing element not allowed` |
   | `BodyTypeResolver.java:31` | `error: self-closing element not allowed` |
   | `LanguageModel.java:59` | `error: unknown tag: name` |
   | `LanguageModel.java:59` | `error: unknown tag: option` |
   | `LanguageModel.java:62` | `error: tag not supported in HTML5: tt` |
   | `LanguageModel.java:74` | `error: unknown tag: name` + `unknown tag: 
option` |
   
   The `unknown tag` ones are the interesting pair. `LanguageModel` documents 
the property prefix as prose:
   
   ```java
    * The options of the language itself, which camel.language.<name>.<option> 
sets on the language ...
   ```
   
   Javadoc reads `<name>` and `<option>` as HTML elements, so it reports two 
unknown tags — and, more to the point, **the rendered Javadoc drops them 
entirely**, leaving the reader with `camel.language..` and no indication that 
two placeholders went missing. Wrapping the whole token in `{@code ...}` both 
silences doclint and makes the placeholders visible, which is what the sentence 
needs:
   
   ```java
    * The options of the language itself, which {@code 
camel.language.<name>.<option>} sets on the language ...
   ```
   
   The other two kinds are mechanical: `<p/>` is a self-closing tag, which is 
not valid HTML5 (a bare `<p>` is the Javadoc paragraph break and what the rest 
of the codebase uses), and `<tt>` was removed in HTML5, so `{@code null}` 
replaces `<tt>null</tt>`.
   
   ## Are these changes tested?
   
   ```console
   $ ./mvnw -pl tooling/camel-tooling-model install -DskipTests
   BUILD SUCCESS
   
   $ ./mvnw -pl tooling/camel-tooling-model javadoc:javadoc \
       -DadditionalJOption=-Xdoclint:all,-missing
   0 findings
   ```
   
   Before the change that same command reported the 5 errors in the table.
   
   `formatter:format` and `impsort:sort` ran as part of the module build; they 
rewrapped two lines of `LanguageModel` after the text got longer, and that 
rewrap is included in the commit, so the tree is clean for the CI check on 
uncommitted generated/formatted files.
   
   Javadoc only — no code, no signatures, no behaviour.
   
   ## Scope
   
   With #31070, #31072 and this one, the doclint findings outside the `missing` 
category are down to 3, all in `tooling/`: `camel-tooling-maven`, 
`camel-util-json` and `openapi-rest-dsl-generator` (one each). I will send 
those as a follow-up. `components/` and `dsl/` are not surveyed yet, so this 
does not resolve the ticket.
   
   ## Are there any user-facing changes?
   
   The generated Javadoc for `LanguageModel#getLanguageOptions` and 
`#getConfigurationOptions` now actually shows `camel.language.<name>.<option>` 
instead of silently swallowing the two placeholders.
   
   ## 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]

Reply via email to