Skip to content
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

Remove redundant requireNonNull when copying Optional content #13925

Conversation

findepi
Copy link
Member

@findepi findepi commented Aug 30, 2022

When doing a defensive copy of a Optional<collection> constructor
parameter in older Java versions one had to invoke requireNonNull
explicitly. This is no longer needed since Java's implicit
NullPointerException message will be as good.

When doing a defensive copy of a `Optional<collection>` constructor
parameter in older Java versions one had to invoke `requireNonNull`
explicitly. This is no longer needed since Java's implicit
NullPointerException message will be as good.
@findepi findepi added the no-release-notes This pull request does not require release notes entry label Aug 30, 2022
@cla-bot cla-bot bot added the cla-signed label Aug 30, 2022
@findepi findepi requested review from hashhar and losipiuk August 30, 2022 17:53
@findepi findepi merged commit f8ada1a into trinodb:master Aug 31, 2022
@findepi findepi deleted the findepi/remove-redundant-requirenonnull-when-copying-optional-content-f8100e branch August 31, 2022 10:42
@github-actions github-actions bot added this to the 395 milestone Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed no-release-notes This pull request does not require release notes entry
Development

Successfully merging this pull request may close these issues.

2 participants