Skip to content
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

Some work on the issue #40614 now that we have soundness #52383

Conversation

MelbourneDeveloper
Copy link
Contributor

The Dart codebase has a bunch of TODOs for issue #40614. This PR removes a few of them.

It appears that the codebase used to require null guards, but now that Dart 3 has full null soundness, these calls are redundant.


  • [X ] I’ve reviewed the contributor guide and applied the relevant portions to this PR.

Contribution guidelines:

  • See our contributor guide for general expectations for PRs.
  • Larger or significant changes should be discussed in an issue before creating a PR.
  • Contributions to our repos should follow the Dart style guide and use dart format.

Note that this repository uses Gerrit for code reviews. Your pull request will be automatically converted into a Gerrit CL and a link to the CL written into this PR. The review will happen on Gerrit but you can also push additional commits to this PR to update the code review.


@copybara-service

This comment was marked as duplicate.

@copybara-service
Copy link

Thank you for your contribution. This project uses Gerrit for code reviews. Your pull request has automatically been converted into a code review at:

https://dart-review.googlesource.com/c/sdk/+/303161

Please wait for a developer to review your code review at the above link. See CONTRIBUTING.md to learn how to upload changes to Gerrit directly. You can speed up the review if you sign into Gerrit and manually add a reviewer that has recently worked on the relevant code and they will help you. You can also push additional commits to this pull request to update the code review.

@mit-mit
Copy link
Member

mit-mit commented May 17, 2023

Thanks for the contribution @MelbourneDeveloper; submitting this to the queue now!

@MelbourneDeveloper
Copy link
Contributor Author

@mit-mit thanks Michael. There are several other cases of this throughout the codebase so I plan to submit some more.

copybara-service bot pushed a commit that referenced this pull request May 23, 2023
This reverts commit e43939d.

Reason for revert: It causes issues when applications are run with the --no-sound-null-safety flag.

Original change's description:
> Some work on the issue #40614 now that we have soundness
>
> Closes #52383
>
> GitOrigin-RevId: 70014d0
> Change-Id: Ibf4ad3d862b07873317785389799ee8dfc80290f
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/303161
> Reviewed-by: Siva Annamalai <asiva@google.com>
> Commit-Queue: Michael Thomsen <mit@google.com>

Change-Id: I9c928f6c6756c4aad22f1b98e86e9b04af999e7a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/305040
Commit-Queue: Siva Annamalai <asiva@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
@kevmoo
Copy link
Member

kevmoo commented May 23, 2023

FYI – this was reverted, sadly.

@MelbourneDeveloper
Copy link
Contributor Author

@kevmoo understandable.

@mit-mit
Copy link
Member

mit-mit commented May 24, 2023

I'm hopeful that we can get this relanded in a few quarters, but yeah looks like we'll have to wait a bit. Sorry @MelbourneDeveloper.

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.

3 participants