Skip to content

[Group 2] Enable nullable annotations for Microsoft.Extensions.FileProviders.Abstractions - #57405

Merged
krwq merged 9 commits into
dotnet:mainfrom
maxkoshevoi:mk/43605-FileProviders-Abstractions
Aug 25, 2021
Merged

[Group 2] Enable nullable annotations for Microsoft.Extensions.FileProviders.Abstractions#57405
krwq merged 9 commits into
dotnet:mainfrom
maxkoshevoi:mk/43605-FileProviders-Abstractions

Conversation

@maxkoshevoi

@maxkoshevoimaxkoshevoi commented Aug 14, 2021

Copy link
Copy Markdown
Contributor

@ghost

Copy link
Copy Markdown

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

@ghostghost added the community-contribution Indicates that the PR has been added by a community member label Aug 14, 2021
@maxkoshevoimaxkoshevoi changed the title Enable nullable annotations for Microsoft.Extensions.FileProviders.Abstractions[Group 2] Enable nullable annotations for Microsoft.Extensions.FileProviders.AbstractionsAug 15, 2021
@ghost

Copy link
Copy Markdown

Tagging subscribers to this area: @maryamariyan, @dotnet/area-extensions-filesystem
See info in area-owners.md if you want to be subscribed.

Issue Details

Related to #43605

Annotated according to:

Author:maxkoshevoi
Assignees:-
Labels:

new-api-needs-documentation, area-Extensions-FileSystem, community-contribution

Milestone:-

@adamsitnikadamsitnik added this to the 7.0.0 milestone Aug 16, 2021
@krwq
krwq merged commit b9fc51b into dotnet:mainAug 25, 2021
@maxkoshevoi
maxkoshevoi deleted the mk/43605-FileProviders-Abstractions branch August 25, 2021 14:32
dougbu added a commit to dotnet/aspnetcore that referenced this pull request Aug 28, 2021
- handle Microsoft.Extensions.FileProviders.Abstractions nullability annotations (dotnet/runtime#57405)
- handle Microsoft.Extensions.FileProviders.Physical nullability annotations (dotnet/runtime#57409)
- !fixup! improve `HttpConnectionDispatcher.GetConnectionToken(...)` and its use
dotnet-maestroBot added a commit to dotnet/aspnetcore that referenced this pull request Aug 29, 2021
[main] Update dependencies from dotnet/efcore dotnet/runtime
- Respond to nullable annotations of `StringSegment`
- general assumption is we don't create `StringValues` w/ `null` entries
- in addition, `StringSegment.IsNullOrEmpty(StringSegment)` doesn't seem to help the compiler
- !fixup!
- Handle more nullable expressions
- mostly about nullability annotations in `StringValues` and `StringSegment`
- see dotnet/runtime#58223 for info about the `StringValues` -> `string` implicit conversion
- Merge branch 'main' into darc-main-fcbf8a54-42e6-4ded-9535-034b26dfd6ba
- Latest nullability updates
- handle Microsoft.Extensions.FileProviders.Abstractions nullability annotations (dotnet/runtime#57405)
- handle Microsoft.Extensions.FileProviders.Physical nullability annotations (dotnet/runtime#57409)
- !fixup! improve `HttpConnectionDispatcher.GetConnectionToken(...)` and its use
- Remove some `StringSegment.Value` `null` forgiveness and extra handling
- e.g. `ResponseCompressionProvider` used `StringSegment.Value` when a `string` constant would do
- also, `MediaTypeHeaderValue.Charset` getter unnecessarily did `StringSegment` -> `string` -> `StringSegment`
- also, `CookieHeaderParserShared` ignored `[NotNullWhen(true)]` attributes in helper
- !fixup! Handle `IsNullOrEmpty(...)` metadata lack
- !fixup! Use `ToString()` instead of suppression
- Update `KnownHeaders`
- then regenerate HttpHeaders.Generated.cs
- Do generated JS files need to change?
- !fixup! Allow `Charset` to be `null`
- !fixup! Adjust to fix failing tests
- note `HttpResponse.ContentType` type now matches `HttpRequest.ContentType`
- !fixup! React to `HttpResponse.ContentType` change
@ghostghost locked as resolved and limited conversation to collaborators Sep 24, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Extensions-FileSystemcommunity-contributionIndicates that the PR has been added by a community membernew-api-needs-documentation

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

5 participants

@maxkoshevoi@krwq@adamsitnik@eerhardt@joperezr