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

Annotate System.Net.Security for nullable reference types #32541

Merged

Conversation

eiriktsarpalis
Copy link
Member

@eiriktsarpalis eiriktsarpalis commented Feb 19, 2020

Contributes to #2339

I think I might have spotted a few bugs, please see my comments in the diff /cc @dotnet/ncl

@eiriktsarpalis eiriktsarpalis marked this pull request as ready for review February 19, 2020 20:42
@eiriktsarpalis eiriktsarpalis force-pushed the annotate-system-net-security branch 4 times, most recently from d496304 to 9c18638 Compare February 21, 2020 18:02
@eiriktsarpalis
Copy link
Member Author

Rebased on top of newly added System.Net.Primitives annotations

@eerhardt
Copy link
Member

    public InvalidCredentialException(string message, System.Exception innerException) { }

string? message, System.Exception? innerException. Here and for string message overload above.


Refers to: src/libraries/System.Net.Security/ref/System.Net.Security.cs:583 in cadecbf. [](commit_id = cadecbf680f43be03eb4fd7ca59df230ffe075ba, deletion_comment = False)

@eerhardt
Copy link
Member

    public bool Contains(string searchServiceName) { throw null; }

From a quick look at the code, it appears that Contains(string searchServiceName) handles passing in null. Should this be string? searchServiceName?


Refers to: src/libraries/System.Net.Security/ref/System.Net.Security.cs:617 in cadecbf. [](commit_id = cadecbf680f43be03eb4fd7ca59df230ffe075ba, deletion_comment = False)

@eiriktsarpalis
Copy link
Member Author

Rebased on top of System.Net.Sockets annotations.

Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

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

Assuming your questions to the library owners are resolved, this LGTM. Nice work.

@eiriktsarpalis eiriktsarpalis merged commit 4f84429 into dotnet:master Feb 27, 2020
@eiriktsarpalis eiriktsarpalis deleted the annotate-system-net-security branch February 27, 2020 17:32
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants