Skip to content

chore: exclude hidden internal classes from Maven Javadoc jar. - #1270

Open
lahirumaramba wants to merge 1 commit into
mainfrom
lm-javadoc-exclude-hidden-classes
Open

lahirumaramba wants to merge 1 commit into
mainfrom
lm-javadoc-exclude-hidden-classes

Conversation

@lahirumaramba

Copy link
Copy Markdown
Member

Follow-up to #1262. Switching Maven Central Javadoc packaging to the standard doclet means @hide tags no longer omit annotated APIs, so two internal helper classes that live in public packages would appear in the published -javadoc.jar (DevSite docs still use Doclava and are unaffected).

This PR excludes those two internal helper classes from the Maven Central Javadoc jar and adds an explicit internal-use notice to the three hidden protected fields on Query so every remaining @hide member in public classes is clearly marked.

Technical Details

  • Excludes ImplFirebaseTrampolines and InternalHelpers via <sourceFileExcludes> in maven-javadoc-plugin (pom.xml), and clears <sourceFileExcludes combine.self="override" /> in the devsite-apidocs profile.
  • Adds <strong>For internal use.</strong> to repo, path, and params in Query.java to match the other hidden members in Query, DatabaseError, DatabaseException, Transaction, and TenantManager.
  • Verified with mvn -B -ntp clean validate javadoc:jar (0 Checkstyle violations; confirmed both helper classes and all excluded internal packages are absent from the generated -javadoc.jar).

Follow-up to #1262. The standard Javadoc doclet ignores @hide tags, so class-level @hide helper classes in public packages were still included in the Maven Central -javadoc.jar.

Excludes ImplFirebaseTrampolines and InternalHelpers via sourceFileExcludes in maven-javadoc-plugin, clears sourceFileExcludes in the devsite-apidocs profile, and adds internal-use notes to the three hidden protected fields on Query.
@lahirumaramba
lahirumaramba requested a review from a team December 1, 2026 20:28

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the pom.xml configuration to exclude specific internal source files (ImplFirebaseTrampolines.java and InternalHelpers.java) from documentation generation. Additionally, it updates the Javadoc comments for the repo, path, and params fields in Query.java to explicitly mark them as being for internal use. There are no review comments, and I have no feedback to provide.

@yvonnep165 yvonnep165 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

This branch has not been deployed

No deployments
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.

2 participants