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

Regarding Optional.orElse #127

Closed
vimil opened this issue Mar 3, 2021 · 1 comment · Fixed by #128
Closed

Regarding Optional.orElse #127

vimil opened this issue Mar 3, 2021 · 1 comment · Fixed by #128
Assignees
Labels

Comments

@vimil
Copy link

vimil commented Mar 3, 2021

with eclipse external annotations on Optional I see the below signature
@nonnull String @nonnull java.util.Optional.orElse(@nullable String other)
shouldn't this be
@nullable String @nonnull java.util.Optional.orElse(@nullable String other)

instead, as the javadoc for orElse states that the return type can be null if in the input parameter is null

@J-N-K J-N-K self-assigned this Mar 4, 2021
@J-N-K
Copy link
Member

J-N-K commented Mar 4, 2021

Correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants