Skip to content

Add NullaWay to package-info for o.s.i.config package #10208

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

Conversation

cppwfs
Copy link
Contributor

@cppwfs cppwfs commented Jul 17, 2025

  • Add @org.jspecify.annotations.NullAway to package-info.java
  • Apply @Nullable, @SuppressWarnings("NullAway.Init) as need. Tweak code as necessary in locations where NullAway can not discern that the null condition is already mitigated

@cppwfs cppwfs requested a review from artembilan July 17, 2025 15:55
@artembilan
Copy link
Member

Pay attention how those annotations are converted GH user handles:
image
That's why I prefer to use back-ticks even in commit messages for code snippets to avoid calling those GH users for nothing 😄

@cppwfs
Copy link
Contributor Author

cppwfs commented Jul 17, 2025

Thank you for catching that! Updated the comment.

@artembilan
Copy link
Member

Updated the comment.

It doesn't help any more.
You have already invited those GH users to our PR review 😉

I just mean the reasoning behind my preference to use code snippet tools in commit messages as well.

@cppwfs
Copy link
Contributor Author

cppwfs commented Jul 17, 2025

Understood.

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

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

Very cool!
Thanks

cppwfs added 3 commits July 18, 2025 12:23
Add @org.jspecify.annotations.NullAway to package-info.java
Apply @nullable, @SuppressWarnings("NullAway.Init) as need.
Tweak code as necessary in locations where NullAway can not descern that the null condition is already mitigated
…mpleMessageHandlerFactoryBean

Remove commented code in AbstractSimpleMessageHandlerFactoryBean.extractTarget
Restructure IntegrationManagementConfigurer.registerComponentGauges so that a NullAway suppresion can be removed from the method
related to: spring-projects#10083
rebased
@cppwfs cppwfs force-pushed the apply-NullAway-to-package-o.s.i.config branch from eaa0633 to d5f97cc Compare July 18, 2025 16:25
@artembilan artembilan added this to the 7.0.0-M1 milestone Jul 18, 2025
@artembilan artembilan merged commit 9f3575e into spring-projects:main Jul 18, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants