Skip to content

Enforce Javadoc doclint via inherited property and failOnWarnings#166

Merged
vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:javadoc-doclint-fail-on-warnings
Jul 16, 2026
Merged

Enforce Javadoc doclint via inherited property and failOnWarnings#166
vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:javadoc-doclint-fail-on-warnings

Conversation

@vharseko

Copy link
Copy Markdown
Member

Summary

  • Replace the blanket <doclint>none</doclint> with a single inherited
    <doclint>all,-missing</doclint> property, referenced as <doclint>${doclint}</doclint>
    in the javadoc plugin config (there were no per-module duplicates to drop).
  • Bump maven-javadoc-plugin to 3.12.0 and enable <failOnWarnings>true</failOnWarnings>
    so Javadoc problems break the build.
  • Fix every doclint error and warning surfaced across all modules on JDK 11 and JDK 26.

Doclint fixes (Javadoc comments only — no behavior change)

File Fix
ConditionalFilter escape the <pre> code sample (nested-brace {@code} broke on JDK 11)
GenericHeaplet drop {@link} to non-existent GenericHeapObject
RouterHandler, MCPServerFeaturesFilter <br/><br>
MCPServerFeaturesFilter escape bare & as &amp;
ExpressionRequestAsyncFunction add description for @param <V>
OpenApiValidationFilter remove orphan </p>
Keys drop type arguments from {@link Factory}
JsonValues <tt><code>
PasswordReplayFilterHeaplet fix heading-level sequence (JDK 26)

Verification

  • Full mvn package (the CI command — runs the attach-javadocs jar goal with failOnWarnings=true): BUILD SUCCESS on both JDK 11 and JDK 26.
  • javadoc:javadoc: 0 errors / 0 warnings on both JDKs.
  • javadoc:aggregate -pl '!openig-war' -pl '!openig-ui' (deploy workflow): BUILD SUCCESS.
  • Javadoc is not skipped in any module (no maven.javadoc.skip; the only javadoc <skip> is false).

Replace the blanket <doclint>none</doclint> with an inherited
<doclint>all,-missing</doclint> property (referenced as ${doclint}),
bump maven-javadoc-plugin to 3.12.0, and enable <failOnWarnings>true</failOnWarnings>
so Javadoc problems break the build.

Fix every doclint error and warning surfaced across modules on both
JDK 11 and JDK 26:
- ConditionalFilter: escape the <pre> code sample (nested-brace {@code} broke on JDK 11)
- GenericHeaplet: drop {@link} to non-existent GenericHeapObject
- RouterHandler, MCPServerFeaturesFilter: <br/> -> <br>
- MCPServerFeaturesFilter: escape bare & as &amp;
- ExpressionRequestAsyncFunction: add description for @param <V>
- OpenApiValidationFilter: remove orphan </p>
- Keys: drop type arguments from {@link Factory}
- JsonValues: <tt> -> <code>
- PasswordReplayFilterHeaplet: fix heading-level sequence (JDK 26)
@vharseko vharseko requested a review from maximthomas July 15, 2026 18:15
@vharseko vharseko added ci Build, CI/CD, and GitHub Actions changes java Pull requests that update Java code dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation labels Jul 15, 2026
@vharseko vharseko merged commit 463e5c2 into OpenIdentityPlatform:master Jul 16, 2026
20 checks passed
@vharseko vharseko deleted the javadoc-doclint-fail-on-warnings branch July 16, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Build, CI/CD, and GitHub Actions changes dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants