Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Fix javadoc failure#1350

Closed
milaGGL wants to merge 8 commits into
mainfrom
mila/fix-ci-lint-error
Closed

Fix javadoc failure#1350
milaGGL wants to merge 8 commits into
mainfrom
mila/fix-ci-lint-error

Conversation

@milaGGL

@milaGGL milaGGL commented Jul 7, 2023

Copy link
Copy Markdown
Contributor

Adding / updating comments to pass javadoc lint check

@product-auto-label product-auto-label Bot added size: xs Pull request size is extra small. api: firestore Issues related to the googleapis/java-firestore API. labels Jul 7, 2023
@product-auto-label product-auto-label Bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Jul 7, 2023
@suztomo

suztomo commented Jul 7, 2023

Copy link
Copy Markdown
Member

Assuming you're working on javadoc error fix (Thank you!), you want to focus on the "errors: " lines rather than "warnings: ". Note that the warnings for javadoc may not match Google's coding convention. In that case you don't have to fix warnings.

Tip: A common mistake is to write simple Javadoc in the form /** @return the customer ID /. This is incorrect, and should be changed to /* Returns the customer ID. */.

https://google.github.io/styleguide/javaguide.html

@generated-files-bot

Copy link
Copy Markdown

Warning: This pull request is touching the following templated files:

  • google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreClient.java

@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Jul 7, 2023
@milaGGL milaGGL changed the title Update CHANGELOG.md Fix javadoc failure Jul 7, 2023
@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Jul 7, 2023
@milaGGL milaGGL marked this pull request as ready for review July 10, 2023 20:45
@milaGGL milaGGL requested review from a team and tom-andersen July 10, 2023 20:45
@tom-andersen tom-andersen self-assigned this Jul 10, 2023

@tom-andersen tom-andersen 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.

I am a little confused why the the java files in the collection folder need to be changed. These are internal from what I can tell, and maybe a better route is to suppress the error on these.

}

/** Returns the query whose aggregations will be calculated by this object. */
/** @return the query whose aggregations will be calculated by this object. */

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.

The sentence starts after the @return annotation, so make the first letter a capital. Please do this for other texts as well.

Suggested change
/** @return the query whose aggregations will be calculated by this object. */
/** @return The query whose aggregations will be calculated by this object. */

private final int failedAttempts;

/**
* Constructs a new BulkWriterException with the specified parameters.

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.

Suggested change
* Constructs a new BulkWriterException with the specified parameters.
* Constructs a new BulkWriterException.

.setExecutor(null);
}

/** @return a new Builder instance. */

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.

Suggested change
/** @return a new Builder instance. */
/** @return A new Builder instance. */

/**
* @param <A> The type of keys in the sorted map.
* @param <B> The type of keys in the sorted map.
* @param <C> The type of keys in the sorted map.

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.

Suggested change
* @param <C> The type of keys in the sorted map.
* @param <C> The type of values in map.

*
* @param map The map to build the sorted map from.
* @param comparator The comparator to use for defining the order of keys in the sorted map.
* @param <K> The type of keys in the original map.

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.

Suggested change
* @param <K> The type of keys in the original map.
* @param <K> The type of keys in the map.

* @param map The map to build the sorted map from.
* @param comparator The comparator to use for defining the order of keys in the sorted map.
* @param <K> The type of keys in the original map.
* @param <V> The type of values in the original map.

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.

Suggested change
* @param <V> The type of values in the original map.
* @param <V> The type of values in the map.

* @param comparator the comparator to use for defining the order of keys in the sorted map
* @param keys the array of keys
* @param values the array of values
*/

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.

This is a private method. Does it need documentation?

@suztomo

suztomo commented Jul 12, 2023

Copy link
Copy Markdown
Member

You want to focus on the "errors: " lines rather than "warnings: ".

@milaGGL

milaGGL commented Jul 12, 2023

Copy link
Copy Markdown
Contributor Author

Re-opening a new PR which only addresses errors, not warnings. #1353

@milaGGL milaGGL closed this Jul 12, 2023
@milaGGL

milaGGL commented Jul 12, 2023

Copy link
Copy Markdown
Contributor Author

You want to focus on the "errors: " lines rather than "warnings: ".

Thank you @suztomo, javadoc test passed after fixing the "errors".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: firestore Issues related to the googleapis/java-firestore API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants