Skip to content

Conversation

@onobc
Copy link
Contributor

@onobc onobc commented Nov 22, 2025

Resolves #192

@onobc onobc added this to the 1.0.0 milestone Nov 22, 2025
@onobc onobc added the enhancement New feature or request label Nov 22, 2025
@onobc onobc force-pushed the GH-192-jspecify branch 2 times, most recently from 19304c6 to 113d9e6 Compare November 23, 2025 21:34
Resolves spring-projects#192

Signed-off-by: onobc <chris.bono@gmail.com>
@onobc onobc merged commit 0ad6133 into spring-projects:main Nov 23, 2025
5 checks passed
@onobc onobc deleted the GH-192-jspecify branch November 23, 2025 21:47
* Core module for Spring gRPC.
*/
@NullMarked
package org.springframework.grpc;

Choose a reason for hiding this comment

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

Hey @onobc I believe that actually every package needs to be annotated, right? Not only the top-level one, due to the limitations of how NullAway+JSpecify do things, its not inherited from the root to all sub packages.

For example, searching inside Spring Framework we have 356 mathces for files package-info.java with NullMarked inside:

repo:spring-projects/spring-framework "@NullMarked" path:package-info.java

https://github.com/search?q=repo%3Aspring-projects%2Fspring-framework+%22%40NullMarked%22+path%3Apackage-info.java&type=code

So to truly benefit from JSpecify I believe Spring gRPC still has some package-info to add, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👋🏻 @lobaorn-bitso - great catch! Absolutely have to put a package-info.java in each package directory. I will get this fixed shortly.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi, @onobc. If you don't mind or are unavailable, I can do PR for this myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to JSpecify annotations for nullability constraints

3 participants