You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document the public API and enforce javadoc doclint
Takes the javadoc doclint warning count from 519 to zero and wires a
doclint check into the build so it stays there.
Twenty of the warnings were defects in existing javadoc: bare @PARAM and
@throws tags with no description, a missing @PARAM on Kind2Api.execute
and Result.setRealPrecision, a missing @return on Util.smtDivide, two
empty <p> tags, and two {@code} blocks nested inside <code> in TypeUtil.
Result.setClosingSymbols also described itself as setting the opening
symbols, and Node.getName documented itself as "the name of the name".
The remaining 499 were undocumented public and protected members across
67 files, now documented: the Kind 2 json labels, the Lustre
pretty-printer visitors, the engine and solver enums, the result value
classes, and the getters and constructors throughout the results
package. Utility classes that only hold statics got private
constructors, which also removes them from the generated docs.
The javadoc task now passes -Xdoclint:all. Gradle always passes -quiet,
which hides warning-level diagnostics and does not fail the build on
them, so a separate doclintCheck task forks javadoc, reads its
diagnostics and fails `check` if any are reported.
Note that JDK 11's javadoc does not report missing comments at all, so
the new check only bites on newer JDKs. The documentation here was
verified against the JDK 25 javadoc, which does report them.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments