Skip to content

JSpecify Related Update: Properly handle nulls in the "when present" conditions #929

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 11 commits into from
Apr 7, 2025

Conversation

jeffgbutler
Copy link
Member

The "filter" and "map" methods on conditions now explicitly specify whether they expect null values or not.

We now implement the "when present" conditions as specific classes so that they will function properly even if a "map" method results in a null. Previously it was possible to "sneak" a null value into a "when present" condition.

@jeffgbutler jeffgbutler merged commit 3b35f4c into mybatis:master Apr 7, 2025
7 checks passed
@jeffgbutler jeffgbutler deleted the properly-handle-nulls branch April 7, 2025 19:50
@coveralls
Copy link

Coverage Status

coverage: 100.0%. remained the same
when pulling b3b3b7d on jeffgbutler:properly-handle-nulls
into d8f3298 on mybatis:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants