Skip to content

docs(auth): fix invalid Javadoc tags, raw backticks, broken links, and dropped comments - #15311

Open
lqiu96 wants to merge 1 commit into
googleapis:mainfrom
lqiu96:docs/auth-0b-fix-javadoc-tags-and-formatting
Open

lqiu96 wants to merge 1 commit into
googleapis:mainfrom
lqiu96:docs/auth-0b-fix-javadoc-tags-and-formatting

Conversation

@lqiu96

@lqiu96 lqiu96 commented Dec 1, 2026

Copy link
Copy Markdown
Member

Fix invalid inline Javadoc tags, raw Markdown backticks, broken @link targets, dropped comments placed below annotations, missing @param/@throws descriptions, and outdated option references across google-auth-library-java.

@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 cleans up and improves Javadoc documentation across several classes, including fixing formatting, updating external documentation links, and adding missing parameter and exception descriptions. The review feedback highlights several instances where the newly added {@code} tags are split across lines (in AwsCredentialSource, AwsCredentials, IdentityPoolCredentialSource, and GdchCredentials), which can introduce unwanted whitespace or newlines in the rendered HTML. It is recommended to keep these tags on a single line to ensure proper rendering.

Comment on lines +53 to +54
* The source of the AWS credential. The credential source map must contain the {@code
* regional_cred_verification_url} and {@code environment_id} fields.

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.

medium

The {@code} tag is split across lines. In Javadoc, any whitespace (including newlines and leading spaces/asterisks) inside {@code ...} is preserved literally, which can cause the rendered HTML to contain an unwanted leading space or newline inside the code block. It is recommended to keep the entire {@code ...} tag on a single line.

Suggested change
* The source of the AWS credential. The credential source map must contain the {@code
* regional_cred_verification_url} and {@code environment_id} fields.
* The source of the AWS credential. The credential source map must contain the
* {@code regional_cred_verification_url} and {@code environment_id} fields.

Comment on lines +59 to +61
* <p>The {@code environment_id} is the environment identifier, in the format {@code
* aws${version}}. This indicates whether breaking changes were introduced to the underlying AWS
* implementation.

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.

medium

The {@code} tag is split across lines, which causes Javadoc to render it with an unwanted leading space or newline inside the code block. Keeping the tag on a single line avoids this rendering issue.

Suggested change
* <p>The {@code environment_id} is the environment identifier, in the format {@code
* aws${version}}. This indicates whether breaking changes were introduced to the underlying AWS
* implementation.
* <p>The {@code environment_id} is the environment identifier, in the format
* {@code aws${version}}. This indicates whether breaking changes were introduced to the
* underlying AWS implementation.

Comment on lines +282 to +283
* URL will default to {@code
* https://sts.{region}.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15}

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.

medium

The default URL inside the {@code} block is split across lines. This can introduce unwanted newlines or spaces in the rendered code block, making it difficult for users to copy-paste. Keeping the entire URL on a single line is highly recommended and is an allowed exception to the standard line-length limits in Javadoc.

Suggested change
* URL will default to {@code
* https://sts.{region}.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15}
* URL will default to {@code https://sts.{region}.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15}

Comment on lines +250 to +252
* format can be specified using the {@code format} field, which returns a map with keys {@code
* type} and {@code subject_token_field_name}. If the {@code type} is json, the {@code
* subject_token_field_name} must be provided. If no format is provided, we expect the token to be

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.

medium

Multiple {@code} tags are split across lines, which causes them to render with unwanted leading spaces or newlines. Keeping each {@code} tag on a single line ensures correct HTML rendering.

Suggested change
* format can be specified using the {@code format} field, which returns a map with keys {@code
* type} and {@code subject_token_field_name}. If the {@code type} is json, the {@code
* subject_token_field_name} must be provided. If no format is provided, we expect the token to be
* format can be specified using the {@code format} field, which returns a map with keys
* {@code type} and {@code subject_token_field_name}. If the {@code type} is json, the
* {@code subject_token_field_name} must be provided. If no format is provided, we expect the

Comment on lines +411 to +412
* <p>This value is specific to GDCH and combined parameter used for both {@code iss} and {@code
* sub} fields in JWT claim.

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.

medium

The {@code sub} tag is split across lines, which causes it to render with an unwanted leading space or newline. Keeping the tag on a single line ensures correct HTML rendering.

Suggested change
* <p>This value is specific to GDCH and combined parameter used for both {@code iss} and {@code
* sub} fields in JWT claim.
* <p>This value is specific to GDCH and is a combined parameter used for both
* {@code iss} and {@code sub} fields in the JWT claim.

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.

1 participant