You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if there was a rule that could be applied to checkstyle that would ensure that the code follows Spring's best practices for nullability.
Only use org.jspecify annotations
The org.jspecify annotations are immediately before the type (after modifiers like final, private, public) and on the same line as the type
NOTE: I think that ideally this could be used in isolation to apply the nullability checkstyle rules so that teams (e.g. Spring Framework) not using other parts of spring-javaformat can still benefit.
Activity
rwinch commentedon Jan 29, 2026
Thanks for the quick turnaround on this @wilkinsona! Very eager to give this a try 😄
Enforce Spring team's nullability style and conventions