Skip to content

Conversation

@onobc
Copy link
Contributor

@onobc onobc commented Nov 25, 2025

therepanic and others added 2 commits November 25, 2025 15:20
The first attempt at using JSpecify / Nullaway for nullability constraints
missed many packages. This commit fixes that by adding a package-info.java
to each package that is annotated w/ `@org.jspecify.NullMarked`.

See spring-projects#192

Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>
Resolves spring-projects#192

Signed-off-by: onobc <chris.bono@gmail.com>
@onobc onobc force-pushed the add-more-module-info branch from cad5bef to 0256653 Compare November 25, 2025 21:24
@onobc onobc changed the title Add more module info Ensure package-info.java in each package w/ @NullMarked Nov 25, 2025
@lobaorn-bitso
Copy link

Hey @onobc, thanks for the work, looking great now :)

The only other things that could take a bit more checking would be Generics / Wildcards, in Spring Framework, for example:

repo:spring-projects/spring-framework "? extends @Nullable"

Or more broadly

repo:spring-projects/spring-framework "extends @Nullable"

And in boot

repo:spring-projects/spring-boot "extends @Nullable"

But those checkings / additions would be better served in a dedicated PR, and I am not even sure now which cases would exist here in the repo, but regardless, a check for it would be nice because it could unravel some corner cases :)

@onobc onobc merged commit ef56296 into spring-projects:main Nov 26, 2025
5 checks passed
@onobc onobc deleted the add-more-module-info branch November 26, 2025 19:11
@onobc
Copy link
Contributor Author

onobc commented Nov 26, 2025

Thank you both @therepanic @lobaorn-bitso

I merged this in and will take a scan across generics in a subsequent movement.

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.

3 participants