Skip to content

Permit flatMap* function parameters to return a null stream. - #41

Merged
cpovirk merged 1 commit into
mainfrom
flatmap
Sep 6, 2023
Merged

cpovirk merged 1 commit into
mainfrom
flatmap

Conversation

@cpovirk

@cpovirk cpovirk commented Sep 6, 2023

Copy link
Copy Markdown
Collaborator

See typetools/jdk#177

(We already have the annotation on ofNullable, so we don't need to
carry that over.)

@wmdietl wmdietl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Change itself looks good. Should the PR title be something like Permit flatMap* function parameters to return a null stream.? This isn't annotating the return type of the flatMap* functions themselves.

@wmdietl wmdietl assigned cpovirk and unassigned wmdietl Sep 6, 2023
See typetools/jdk#177

(We already have the annotation on `ofNullable`, so we don't need to
carry that over.)
@cpovirk cpovirk changed the title Permit flatMap* to return a null stream. Permit flatMap* function parameters to return a null stream. Sep 6, 2023
@cpovirk

cpovirk commented Sep 6, 2023

Copy link
Copy Markdown
Collaborator Author

Good call, done.

@cpovirk
cpovirk merged commit a7bb938 into main Sep 6, 2023
@cpovirk
cpovirk deleted the flatmap branch September 6, 2023 17:27
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.

2 participants