Skip to content

Enable strict Javadoc doclint (all,-missing) and fix all doclint issues#197

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

Enable strict Javadoc doclint (all,-missing) and fix all doclint issues#197
vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:javadoc-doclint-strict

Conversation

@vharseko

Copy link
Copy Markdown
Member

Summary

Make the Javadoc build strict (failOnWarnings=true) and fix every existing doclint error/warning so it stays green across the CI JDK matrix (17–26).

pom.xml

  • Add an inherited doclint property (all,-missing) and reference it from maven-javadoc-plugin via ${doclint} (was doclint=none).
  • Bump maven-javadoc-plugin 3.11.2 → 3.12.0 and enable <failOnWarnings>true</failOnWarnings>.
  • Add j2objc-annotations:3.0.0 to the Javadoc classpath via <additionalDependencies> so Guava's @ReflectionSupport(Level.FULL) resolves instead of emitting a warning that would trip failOnWarnings.

There were no per-module doclint overrides to drop — only the root pom carried it.

Doclint fixes

218 issues in 92 files across 26 modules — Javadoc comments/headers only, no code changes:

  • block @inheritDoc on overrides → redundant comment removed
  • self-closing <p/> / </p/>, empty <p>, <tt><code>, <blockquote>/<pre> nesting, <caption> for tables, bad &{ entities
  • broken/typo'd {@link} / {@Link} / @see, nested {@link}
  • stale @throws / @param / @return (not thrown / wrong name / on void), duplicate @return

Verification

Full-reactor mvn javadoc:jar builds clean with 0 doclint warnings and produces all 40 module javadoc jars on both JDK 17 and JDK 26. No Java module is skipped; only pom/JS aggregator modules without Java sources are inherently skipped by the plugin.

Make the Javadoc build fail on any doclint error or warning across all
modules, and clean up every existing issue so it stays green from
JDK 17 through JDK 26.

pom.xml:
- add an inherited `doclint` property (all,-missing) and reference it
  from maven-javadoc-plugin via ${doclint} (was doclint=none)
- bump maven-javadoc-plugin to 3.12.0 and enable failOnWarnings
- put j2objc-annotations on the Javadoc classpath so Guava's
  @ReflectionSupport(Level.FULL) resolves instead of warning

Fix 218 doclint issues in 92 files across 26 modules: block @inheritdoc
on overrides, self-closing <p/>, broken {@link}/@see references,
<tt>/<blockquote>/<pre> HTML, bad HTML entities, and stale
@throws/@param/@return tags. Javadoc comments only; no code changes.

Verified: full-reactor `mvn javadoc:jar` builds clean with zero warnings
on both JDK 17 and JDK 26.
@vharseko
vharseko requested a review from maximthomas July 16, 2026 10:50
@vharseko vharseko added documentation Documentation, javadoc, adoc, README, wiki java Pull requests that update Java code dependencies Pull requests that update a dependency file ci CI/CD, build and release workflows labels Jul 16, 2026
@vharseko
vharseko merged commit 91d14b8 into OpenIdentityPlatform:master Jul 16, 2026
34 checks passed
@vharseko
vharseko deleted the javadoc-doclint-strict branch July 16, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI/CD, build and release workflows dependencies Pull requests that update a dependency file documentation Documentation, javadoc, adoc, README, wiki java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants