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

Declare CompletableFuture.completedStage(value) to accept null values #1395

Merged
merged 5 commits into from Jan 5, 2021
Merged

Declare CompletableFuture.completedStage(value) to accept null values #1395

merged 5 commits into from Jan 5, 2021

Conversation

mikaelstaldal
Copy link
Contributor

@mikaelstaldal mikaelstaldal commented Dec 30, 2020

Fixes #1397


Make sure these boxes are checked before submitting your PR -- thank you!

  • Added an entry into CHANGELOG.md if you have changed SpotBugs code

Copy link
Member

@KengoTODA KengoTODA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#484 is already closed, I suggest you create a new one.
Also, consider adding a unit test case just like this Issue484.java to avoid future regression.

@mikaelstaldal
Copy link
Contributor Author

@KengoTODA OK, I have addressed your comments.

Copy link
Member

@KengoTODA KengoTODA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, thank you! 👍

@KengoTODA KengoTODA merged commit 200c1db into spotbugs:master Jan 5, 2021
@mikaelstaldal mikaelstaldal deleted the patch-1 branch March 1, 2021 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NP_NONNULL_PARAM_VIOLATION false-positive in CompletableFuture.completedStage(value)
2 participants