Remove a number of unneeded nullability suppressions. (#85788)
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Thu, 4 May 2023 22:13:35 +0000 (01:13 +0300)
committerGitHub <noreply@github.com>
Thu, 4 May 2023 22:13:35 +0000 (23:13 +0100)
commitf924d6b5f69792f33a507b47a1fc870a185ad638
tree6e85820d7558f21bce58f3bdba7685b73c02f247
parentb2ff13fbce35160f926b846359f64f756a633011
Remove a number of unneeded nullability suppressions. (#85788)

* Fix nullability annotation of the JsonSerializer.Serialize methods.

* Remove a few more suppressions from the implementation.

* Revert annotations in the public APIs.
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/CastingConverter.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonConverterOfT.WriteCore.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonConverterOfT.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfoOfT.WriteHelpers.cs