Skip to content

Conversation

@osa1
Copy link
Member

@osa1 osa1 commented Oct 22, 2025

Since sound null safety we no longer need to manually check for nulls when setting fields, as we don't use nullable types for field values.

Fixes #978.


cl/822978521

osa1 added 3 commits October 22, 2025 11:36
Since sound null safety we no longer need to manually check for nulls
when setting fields, as we don't use nullable types for field values.

Fixes google#978.
@osa1 osa1 changed the title Redundant nullability checks Avoid redundant nullability checks when updating fields Oct 22, 2025
@osa1 osa1 changed the title Avoid redundant nullability checks when updating fields Avoid redundant nullability checks when updating repeated fields Oct 23, 2025
@osa1 osa1 marked this pull request as ready for review October 23, 2025 19:34
@osa1 osa1 requested a review from sigurdm October 23, 2025 19:34
@osa1 osa1 merged commit 7db0784 into google:master Oct 24, 2025
12 checks passed
@osa1 osa1 deleted the redundant_nullability_checks branch October 24, 2025 08:16
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.

_checkNotNull field checks for scalars are not necessary (since null safety)

2 participants