-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: update JavaDoc to use @return #1233
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, for void
methods, it will just be null
and no @return
would be added, right?
Yep; currently all the autogenerated samples from Phase 1 of SnippetGen do not even have JavaDocComments for the input parameters or return type. For the Phase 2 configured samples of SnippetGen, it will behave as you mention above: if the method is |
Kudos, SonarCloud Quality Gate passed! |
Adds the ability to create
@return
in the JavDocComments for the generator.This is to follow standard JavaDoc documentation: https://engdoc.corp.google.com/eng/doc/devguide/java/practices/javadoc.md?cl=head#return .
For use in both snippetGen (https://github.com/googleapis/gapic-generator-java/pull/1190/files#diff-66a3ecf48fe8e1eb956bf5fddbbeab290210f2c844434d391c9b2d9097c5fe3e) and Spring CodeGen (https://github.com/googleapis/gapic-generator-java/pull/1226/files#diff-2859250f2b60ae040a98157043b7bb531840598b2db7b5058bf09569f7170e9e)