Skip to content

Fix all Javadoc generation warnings#5

Merged
jeffjensen merged 2 commits into
mainfrom
docs/fix-javadoc-warnings
Jun 28, 2026
Merged

Fix all Javadoc generation warnings#5
jeffjensen merged 2 commits into
mainfrom
docs/fix-javadoc-warnings

Conversation

@jeffjensen

@jeffjensen jeffjensen commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Summary

mvnw javadoc:javadoc emitted 39 warnings. This branch takes it to 0 (BUILD SUCCESS), split into two atomic commits.

Changes

docs(core) — 28 genuine doc gaps, fixed by writing the docs:

  • @param for each IndexDefinition record component + @return on hasExpressionColumn()
  • @return on DatabasePlatform.fromDataSource/fromProductName and on every audit's audit(...) method
  • @return/@param across CapturedSqlPlanAuditTemplate's template and abstract methods, plus constructor Javadoc on the WHERE/ORDER BY/JOIN plan audits
  • A comment on the serialized captured field of the Serializable SqlCapturingStatementInspector (that one was a serialized-form warning)

build(pom) — 11 Lombok false-positives, suppressed:

  • The Javadoc tool reads raw source before Lombok generates the @AllArgsConstructor constructors, so it reports a phantom default constructor on each annotated class. Configured maven-javadoc-plugin with <doclint>all,-missing</doclint>. The reference, syntax, html, and accessibility doclint checks stay on.

Verification

  • After the doc commit alone: exactly the 11 phantom-constructor warnings remained (confirms the 28 fixes resolved their warnings and introduced none).
  • After the pom commit: mvnw clean javadoc:javadoc0 warnings, BUILD SUCCESS.

Notes

  • All changes are Javadoc/comments + one pom plugin block — no signatures or behavior changed, so database-audits-spring-boot's DatabaseAuditTestConfiguration needs no update.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AUPjqVyqjReDQqn3sefVkK

Summary by CodeRabbit

  • Documentation
    • Improved API and class documentation across audit, catalog, capture, and platform components for clearer return values, parameters, and behavior descriptions.
    • Added richer usage details for index and database-related types to make the library easier to understand.
  • Chores
    • Updated the Maven build to configure Javadoc checks with slightly relaxed missing-doc handling while keeping other validation enabled.

jeffjensen and others added 2 commits June 28, 2026 08:38
Resolve the Javadoc generation warnings for genuinely undocumented API:

* Add @param for each IndexDefinition record component and @return on
  hasExpressionColumn().
* Add @return on DatabasePlatform.fromDataSource/fromProductName and on
  every audit's audit(...) method.
* Document the CapturedSqlPlanAuditTemplate template and abstract methods
  (@return and @param) and the WHERE/ORDER BY/JOIN plan-audit constructors.
* Comment the serialized `captured` field on the Serializable
  SqlCapturingStatementInspector.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AUPjqVyqjReDQqn3sefVkK
…tors

The Javadoc tool reads the raw source before Lombok generates the
@AllArgsConstructor constructors and so reports a phantom default
constructor ("use of default constructor, which does not provide a
comment") on each annotated class. Configure maven-javadoc-plugin with
<doclint>all,-missing</doclint> to silence those false positives; the
reference, syntax, html, and accessibility doclint checks stay on.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AUPjqVyqjReDQqn3sefVkK
@coderabbitai

coderabbitai Bot commented Jun 28, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 540751fe-e65b-42b2-b7eb-5de790929399

📥 Commits

Reviewing files that changed from the base of the PR and between 313d6ed and 87c2a58.

📒 Files selected for processing (15)
  • pom.xml
  • src/main/java/io/github/databaseaudits/audit/catalog/ForeignKeyIndexAudit.java
  • src/main/java/io/github/databaseaudits/audit/catalog/ForeignKeyNotNullAudit.java
  • src/main/java/io/github/databaseaudits/audit/catalog/ForeignKeyTypeMatchAudit.java
  • src/main/java/io/github/databaseaudits/audit/catalog/PrimaryKeyPresenceAudit.java
  • src/main/java/io/github/databaseaudits/audit/catalog/RedundantIndexAudit.java
  • src/main/java/io/github/databaseaudits/audit/jpa/SchemaEntityValidationAudit.java
  • src/main/java/io/github/databaseaudits/audit/runtime/UnconditionalMutationAudit.java
  • src/main/java/io/github/databaseaudits/audit/runtime/plan/CapturedSqlPlanAuditTemplate.java
  • src/main/java/io/github/databaseaudits/audit/runtime/plan/JoinIndexAudit.java
  • src/main/java/io/github/databaseaudits/audit/runtime/plan/OrderByIndexAudit.java
  • src/main/java/io/github/databaseaudits/audit/runtime/plan/WhereClauseIndexAudit.java
  • src/main/java/io/github/databaseaudits/capture/SqlCapturingStatementInspector.java
  • src/main/java/io/github/databaseaudits/catalog/IndexDefinition.java
  • src/main/java/io/github/databaseaudits/platform/DatabasePlatform.java

📝 Walkthrough

Walkthrough

Adds maven-javadoc-plugin to pom.xml with doclint set to all,-missing, then fills in previously absent or incomplete Javadoc (@return, @param, constructor blocks) across catalog audit classes, runtime plan audits, CapturedSqlPlanAuditTemplate, SqlCapturingStatementInspector, IndexDefinition, and DatabasePlatform. No executable logic is changed.

Changes

Javadoc Coverage and Doclint Enforcement

Layer / File(s) Summary
Doclint plugin configuration
pom.xml
Adds a build section with maven-javadoc-plugin configured to doclint=all,-missing, enforcing Javadoc completeness at build time while suppressing only the missing group.
Javadoc additions across audit and support classes
src/main/java/io/github/databaseaudits/catalog/IndexDefinition.java, src/main/java/io/github/databaseaudits/platform/DatabasePlatform.java, src/main/java/io/github/databaseaudits/capture/SqlCapturingStatementInspector.java, src/main/java/io/github/databaseaudits/audit/catalog/Foreign*, src/main/java/io/github/databaseaudits/audit/catalog/PrimaryKeyPresenceAudit.java, src/main/java/io/github/databaseaudits/audit/catalog/RedundantIndexAudit.java, src/main/java/io/github/databaseaudits/audit/jpa/SchemaEntityValidationAudit.java, src/main/java/io/github/databaseaudits/audit/runtime/UnconditionalMutationAudit.java, src/main/java/io/github/databaseaudits/audit/runtime/plan/...
Adds or refines @return descriptions on all catalog and runtime audit(...) methods, adds @param block to IndexDefinition, adds @return to DatabasePlatform.fromDataSource and fromProductName, adds a field Javadoc to SqlCapturingStatementInspector, and inserts constructor Javadoc on JoinIndexAudit, OrderByIndexAudit, and WhereClauseIndexAudit. Abstract extension-point Javadoc in CapturedSqlPlanAuditTemplate is also reflowed.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: resolving Javadoc generation warnings across the project.
Docstring Coverage ✅ Passed Docstring coverage is 93.33% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/fix-javadoc-warnings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jeffjensen jeffjensen merged commit d2eb4d0 into main Jun 28, 2026
5 checks passed
@jeffjensen jeffjensen deleted the docs/fix-javadoc-warnings branch June 28, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant