Skip to content

Fix null-annotatation of ISerializerService.Deserialize#48577

Merged
jcouv merged 3 commits intodotnet:masterfrom
tmat:SerializerAnnot
Oct 17, 2020
Merged

Fix null-annotatation of ISerializerService.Deserialize#48577
jcouv merged 3 commits intodotnet:masterfrom
tmat:SerializerAnnot

Conversation

@tmat
Copy link
Member

@tmat tmat commented Oct 14, 2020

Remove class? constraint from AssertNotNull and Contract.ThrowIfNull to allow checking for null on unconstrained generic value.

@tmat tmat requested review from a team as code owners October 14, 2020 00:15
@Dotnet-GitSync-Bot
Copy link
Collaborator

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@tmat
Copy link
Member Author

tmat commented Oct 14, 2020

@jcouv PTAL

Copy link
Contributor

@cston cston left a comment

Choose a reason for hiding this comment

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

Compiler change LGTM.

Copy link
Contributor

@sharwell sharwell left a comment

Choose a reason for hiding this comment

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

AssertNotNull constraint is expected.

Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

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

LGTM Thanks! (iteration 1)

@jcouv jcouv merged commit 0027dc9 into dotnet:master Oct 17, 2020
@ghost ghost added this to the Next milestone Oct 17, 2020
@allisonchou allisonchou modified the milestones: Next, 16.9.P2 Nov 24, 2020
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.

6 participants