Skip to content

Add JSpecify nullify to channel/interceptor, code, and codec/kryo packages #10187

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
merged 5 commits into from
Jul 2, 2025

Conversation

cppwfs
Copy link
Contributor

@cppwfs cppwfs commented Jul 2, 2025

  • Missed the channel/interceptor on the last PR.
  • Removed CompositeCodec(Codec defaultCodec) because null can never be pass to the Codec. In the past it would have thrown a NPE.

Continued effort or issue: #10083

…kages

* Missed the channel/interceptor on the last PR.
* Removed CompositeCodec(Codec defaultCodec)  because null can never be pass to the Codec.    In the past it would have thrown a NPE.

Continued effort or issue: spring-projects#10083
@cppwfs cppwfs requested a review from artembilan July 2, 2025 14:47
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.

Just one concern for the latest commit.

@mrpiggi ,

Do you have any other feedback, please?

cppwfs added 2 commits July 2, 2025 16:10
Removed @nullable from delegates field in CompositeCodec
Remove check for null for delegate and replace it with isEmpty
@artembilan artembilan added this to the 7.0.0-M1 milestone Jul 2, 2025
@artembilan artembilan enabled auto-merge (squash) July 2, 2025 20:44
@artembilan artembilan merged commit 9876db3 into spring-projects:main Jul 2, 2025
3 checks passed
@mrpiggi
Copy link
Contributor

mrpiggi commented Jul 2, 2025

@artembilan So you obviously voted against my suggestion regarding findDelegate(Class<?> type) to never return null from this method but always fall back to this.defaultCodec and get rid of all null checks after calling. Just an oversight or is there any reason?

@artembilan
Copy link
Member

you obviously voted against my suggestion

No, I did not voted against you.
Sorry about that: was concentrated to make those nullables OK.

Feel free to raise a PR with whatever improvements you see!
Thank you for your help!

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.

3 participants