Skip to content

Use @NonNull in Map.computeIfPresent (plus @PolyNull in recent TreeMap override). - #45

Merged
wmdietl merged 1 commit into
eisop:masterfrom
cpovirk:computeIfPresent
Jun 19, 2023
Merged

wmdietl merged 1 commit into
eisop:masterfrom
cpovirk:computeIfPresent

Conversation

@cpovirk

@cpovirk cpovirk commented Jun 12, 2023

Copy link
Copy Markdown
Contributor

(We don't need @NonNull in ConcurrentMap or other null-hostile
subtypes.)

…`TreeMap` override).

(We don't need `@NonNull` in `ConcurrentMap` or other null-hostile
 subtypes.)
cpovirk added a commit to jspecify/jdk that referenced this pull request Jun 12, 2023
It's redundant there, since the value type is already non-nullable.

I overlooked this in #14 and noticed
it only later in eisop/jdk#45.
wmdietl added a commit to eisop-plume-lib/plume-util that referenced this pull request Jun 19, 2023

@wmdietl wmdietl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, looks good!
Related downstream change is in eisop-plume-lib/plume-util#94

wmdietl added a commit to eisop-plume-lib/plume-util that referenced this pull request Jun 19, 2023
@wmdietl
wmdietl merged commit 193a0c4 into eisop:master Jun 19, 2023
cpovirk added a commit to jspecify/jdk that referenced this pull request Jul 5, 2023
cpovirk added a commit to cpovirk/jdk that referenced this pull request Feb 1, 2024
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