-
Notifications
You must be signed in to change notification settings - Fork 625
Make TransformResult non-nullable #2428
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
Conversation
Gil asked that this should not be part of #2383, but I think it still makes sense as an indepedent simplification
Coverage ReportAffected SDKs
Test Logs
NotesHTML coverage reports can be produced locally with Head commit (707e57bb) is created by Prow via merging commits: 1c62992 7bfed6c. |
Binary Size ReportAffected SDKs
Test Logs
NotesHead commit (707e57bb) is created by Prow via merging commits: 1c62992 7bfed6c. |
@schmidt-sebastian: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
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.
lgtm
@@ -159,7 +159,7 @@ private void acknowledgeMutation(long documentVersion, @Nullable Object transfor | |||
version, | |||
transformResult != null | |||
? Collections.singletonList(TestUtil.wrap(transformResult)) | |||
: null); | |||
: 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.
optional nit: you can just remove the Nullable annotation in the signature and change this method's overload to pass in an empty list instead of null
.
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.
Hm, this would have been nice but unfortunately wrap
throws when it is passed an empty Object.
Gil asked that this should not be part of #2383, but I think it still makes sense as an indepedent simplification