-
Notifications
You must be signed in to change notification settings - Fork 192
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
[Backport 2.x] Generate GetSnapshot (#1299) #1336
[Backport 2.x] Generate GetSnapshot (#1299) #1336
Conversation
public final int total() { | ||
return this.total; | ||
return 0; |
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.
May be:
return 0; | |
return snapshots().size(); |
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.
Could also rather than removing the fields just make them optional, and just have the minor "breakage"/inconvenience of them going from int
to Integer
Please also run |
989cfc2
to
deb52b6
Compare
public final List<InfoFeatureState> featureStates() { | ||
return this.featureStates; | ||
return new ArrayList<>(); |
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.
Super nit:
return new ArrayList<>(); | |
return Collections.emptyList(); |
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.
Or just delete it as well, since it was not supported anyway
* Generate get snapshot Signed-off-by: Tatsuya Kawakami <43780506+hogesako@users.noreply.github.com> * add changelog Signed-off-by: Tatsuya Kawakami <43780506+hogesako@users.noreply.github.com> * Update codegen Signed-off-by: Thomas Farr <tsfarr@amazon.com> --------- Signed-off-by: Tatsuya Kawakami <43780506+hogesako@users.noreply.github.com> Signed-off-by: Thomas Farr <tsfarr@amazon.com> Co-authored-by: Thomas Farr <tsfarr@amazon.com> (cherry picked from commit 1c7c6e0)
deb52b6
to
2929787
Compare
Description
Backport #1299 to
2.x
Please review to ensure compatibility is maintained.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.