From 56dc8f992a322fb5b6ce25c9e69d7a655e12be04 Mon Sep 17 00:00:00 2001 From: Krzysztof Wicher Date: Thu, 18 Apr 2019 18:37:37 -0700 Subject: [PATCH] Nullable: couple of missing #nullable enable (dotnet/coreclr#24094) Commit migrated from https://github.com/dotnet/coreclr/commit/ea70542185ef413dd23d685958a55a9721c6e9a7 --- .../src/Interop/Windows/Kernel32/Interop.FileTimeToSystemTime.cs | 1 + .../src/Interop/Windows/Kernel32/Interop.GetProcessInformation.cs | 1 + .../src/Interop/Windows/Kernel32/Interop.GetSystemTime.cs | 1 + .../src/Interop/Windows/Kernel32/Interop.GetSystemTimeAsFileTime.cs | 1 + .../Interop/Windows/Kernel32/Interop.GetSystemTimePreciseAsFileTime.cs | 1 + .../src/Interop/Windows/Kernel32/Interop.SystemTimeToFileTime.cs | 1 + .../Interop/Windows/Kernel32/Interop.TzSpecificLocalTimeToSystemTime.cs | 1 + .../System.Private.CoreLib/src/System/Text/ASCIIUtility.Helpers.cs | 1 + .../src/System/Text/Unicode/Utf16Utility.Validation.cs | 1 + .../src/System/Text/Unicode/Utf8Utility.Helpers.cs | 1 + .../src/System/Text/Unicode/Utf8Utility.Transcoding.cs | 1 + .../src/System/Text/Unicode/Utf8Utility.Validation.cs | 1 + 12 files changed, 12 insertions(+) diff --git a/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.FileTimeToSystemTime.cs b/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.FileTimeToSystemTime.cs index 067ee71..f8c1be9 100644 --- a/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.FileTimeToSystemTime.cs +++ b/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.FileTimeToSystemTime.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#nullable enable using System; using System.Runtime.InteropServices; diff --git a/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetProcessInformation.cs b/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetProcessInformation.cs index 22e0569..7602748 100644 --- a/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetProcessInformation.cs +++ b/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetProcessInformation.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#nullable enable using System; using System.Runtime.InteropServices; diff --git a/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemTime.cs b/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemTime.cs index 710db5e..b51cfa3 100644 --- a/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemTime.cs +++ b/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemTime.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#nullable enable using System; using System.Runtime.InteropServices; diff --git a/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemTimeAsFileTime.cs b/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemTimeAsFileTime.cs index e2dcd90..70363ce 100644 --- a/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemTimeAsFileTime.cs +++ b/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemTimeAsFileTime.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#nullable enable using System; using System.Runtime.InteropServices; diff --git a/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemTimePreciseAsFileTime.cs b/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemTimePreciseAsFileTime.cs index e326279..8c86d95 100644 --- a/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemTimePreciseAsFileTime.cs +++ b/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemTimePreciseAsFileTime.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#nullable enable using System; using System.Runtime.InteropServices; diff --git a/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.SystemTimeToFileTime.cs b/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.SystemTimeToFileTime.cs index 43db7b4..cf81e3d 100644 --- a/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.SystemTimeToFileTime.cs +++ b/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.SystemTimeToFileTime.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#nullable enable using System.Runtime.InteropServices; internal partial class Interop diff --git a/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.TzSpecificLocalTimeToSystemTime.cs b/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.TzSpecificLocalTimeToSystemTime.cs index 2cca7fa..e832e93 100644 --- a/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.TzSpecificLocalTimeToSystemTime.cs +++ b/src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.TzSpecificLocalTimeToSystemTime.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#nullable enable using System; using System.Runtime.InteropServices; diff --git a/src/libraries/System.Private.CoreLib/src/System/Text/ASCIIUtility.Helpers.cs b/src/libraries/System.Private.CoreLib/src/System/Text/ASCIIUtility.Helpers.cs index 731d52a..1b53d94 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Text/ASCIIUtility.Helpers.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Text/ASCIIUtility.Helpers.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#nullable enable using System.Diagnostics; using System.Numerics; using System.Runtime.CompilerServices; diff --git a/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf16Utility.Validation.cs b/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf16Utility.Validation.cs index bdf7972..d398c1f 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf16Utility.Validation.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf16Utility.Validation.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#nullable enable using System.Diagnostics; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; diff --git a/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.Helpers.cs b/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.Helpers.cs index ab29fbe..4bfc615 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.Helpers.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.Helpers.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#nullable enable using System.Buffers.Binary; using System.Diagnostics; using System.Numerics; diff --git a/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.Transcoding.cs b/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.Transcoding.cs index 3b83a24..9536a77 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.Transcoding.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.Transcoding.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#nullable enable using System.Buffers; using System.Buffers.Binary; using System.Diagnostics; diff --git a/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.Validation.cs b/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.Validation.cs index 6425ae1..b36dbb0 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.Validation.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.Validation.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +#nullable enable using System.Diagnostics; using System.Numerics; using System.Runtime.Intrinsics.X86; -- 2.7.4