Skip to content

Fix some upcoming NullAway wildcard warnings#5602

Merged
mpkorstanje merged 2 commits intojunit-team:mainfrom
msridhar:nullaway-wildcard-warnings
Apr 14, 2026
Merged

Fix some upcoming NullAway wildcard warnings#5602
mpkorstanje merged 2 commits intojunit-team:mainfrom
msridhar:nullaway-wildcard-warnings

Conversation

@msridhar
Copy link
Copy Markdown
Contributor

@msridhar msridhar commented Apr 13, 2026

We're starting to work on wildcard support in NullAway (see uber/NullAway#1520), and some warnings turned up when running that NullAway version on JUnit. This PR fixes the warnings. I think the fix makes sense: since ConfigurationParameters#get takes a Function<? super String, ? extends @Nullable T>, org.junit.jupiter.engine.config.JupiterConfiguration#getRawConfigurationParameter should take the same type for its Function parameter.


I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

Most points N/A as this only changes annotations; no code behavior changes

Signed-off-by: Manu Sridharan <msridhar@gmail.com>
@msridhar msridhar force-pushed the nullaway-wildcard-warnings branch from 38afa29 to 1e12942 Compare April 13, 2026 01:12
@testlens-app

This comment has been minimized.

Copy link
Copy Markdown
Contributor

@mpkorstanje mpkorstanje left a comment

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

@mpkorstanje mpkorstanje left a comment

Choose a reason for hiding this comment

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

My bad. The build failure was on main due to #5605. Which only co-incidentally relates to this change. We've disabled tests against JDK 27-ea+17 for now.

@testlens-app
Copy link
Copy Markdown

testlens-app bot commented Apr 14, 2026

🔎 No tests executed 🔎

🏷️ Commit: fdc030a
▶️ Tests: 0 executed
⚪️ Checks: 15/15 completed


Learn more about TestLens at testlens.app.

@mpkorstanje mpkorstanje merged commit 301ec29 into junit-team:main Apr 14, 2026
18 checks passed
@msridhar msridhar deleted the nullaway-wildcard-warnings branch April 14, 2026 23:30
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