Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor: Migrate to JSpecify annotations for nullability constraints. #3016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
michael-simons merged 1 commit into main from feat/jspecify
Jun 3, 2025

Conversation

Copy link
Collaborator

@michael-simons michael-simons commented Jun 2, 2025

Replaces all deprecated Spring annotations with JSpecify annotations, and includes a full refactor so that the parent build profile -Pnullaway compiles and works proper.

Closes #2987

Replaces all deprecated Spring annotations with JSpecify annotations, and includes a full refactor so that the parent build profile `-Pnullaway` compiles and works proper.
Closes #2987
Signed-off-by: Michael Simons <michael@simons.ac>
Copy link
Collaborator Author

Please enjoy each line individually or call for C&M to LGTM this away @meistermeier

Copy link
Collaborator

@meistermeier meistermeier left a comment

Choose a reason for hiding this comment

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

We could add
^org\.springframework\.lang\.Nullable, ^org\.springframework\.lang\.NonNullApi, ^org\.springframework\.lang\.NonNull to the checkstyle's IllegalImportCheck. Just to be sure for the future and avoid importing deprecated API by accident.

michael-simons reacted with thumbs up emoji
Copy link
Collaborator Author

I’ll do it in a second commit when migrating to Spring Format. Very good idea.

@michael-simons michael-simons merged commit 7fcacb7 into main Jun 3, 2025
1 check passed
@michael-simons michael-simons deleted the feat/jspecify branch June 3, 2025 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@meistermeier meistermeier meistermeier left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Migrate to JSpecify annotations for nullability constraints

AltStyle によって変換されたページ (->オリジナル) /