Skip to content

Commit a9c5ead

Browse files
authored
Remove superfluous #nullable enables (#48033)
And enable nullable annotations in test projects
1 parent ed2c92f commit a9c5ead

File tree

248 files changed

+5
-263
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+5
-263
lines changed

src/coreclr/System.Private.CoreLib/src/Internal/Runtime/InteropServices/ComponentActivator.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
5-
64
using System;
75
using System.Collections.Generic;
86
using System.Reflection;

src/libraries/Common/src/Internal/Cryptography/BasicSymmetricCipher.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics;
76
using System.Security.Cryptography;

src/libraries/Common/src/Internal/Cryptography/BasicSymmetricCipherBCrypt.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics;
76
using System.Security.Cryptography;

src/libraries/Common/src/Internal/Cryptography/HashProviderCng.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics;
76
using Microsoft.Win32.SafeHandles;

src/libraries/Common/src/Internal/Cryptography/Helpers.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics.CodeAnalysis;
76
using System.Security.Cryptography;

src/libraries/Common/src/Internal/Cryptography/PemKeyImportHelpers.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics;
76
using System.Security.Cryptography;

src/libraries/Common/src/Internal/Cryptography/UniversalCryptoDecryptor.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics;
76
using System.Security.Cryptography;

src/libraries/Common/src/Interop/Linux/cgroups/Interop.cgroups.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Buffers.Text;
76
using System.Diagnostics;

src/libraries/Common/src/Interop/Linux/procfs/Interop.ProcFsStat.TryReadStatusFile.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Buffers;
76
using System.Collections.Generic;

src/libraries/Common/src/Interop/OSX/Interop.CoreFoundation.CFError.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics;
76
using System.Runtime.InteropServices;

src/libraries/Common/src/Interop/OSX/Interop.libobjc.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
5-
64
using System;
75
using System.Runtime.InteropServices;
86

src/libraries/Common/src/Interop/OSX/Interop.libproc.GetProcessInfoById.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
5-
64
using System;
75
using System.Runtime.InteropServices;
86

src/libraries/Common/src/Interop/OSX/Interop.libproc.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
5-
64
using System;
75
using System.Collections.Generic;
86
using System.ComponentModel;

src/libraries/Common/src/Interop/OSX/System.Native/Interop.SearchPath.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Runtime.InteropServices;
76

src/libraries/Common/src/Interop/OSX/System.Security.Cryptography.Native.Apple/Interop.KeyAgree.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics;
76
using System.Runtime.InteropServices;

src/libraries/Common/src/Interop/OSX/System.Security.Cryptography.Native.Apple/Interop.Keychain.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Collections.Generic;
76
using System.Diagnostics;

src/libraries/Common/src/Interop/OSX/System.Security.Cryptography.Native.Apple/Interop.SecErr.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65

76
internal static partial class Interop

src/libraries/Common/src/Interop/OSX/System.Security.Cryptography.Native.Apple/Interop.SecErrMessage.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System.Runtime.InteropServices;
65
using Microsoft.Win32.SafeHandles;
76

src/libraries/Common/src/Interop/OSX/System.Security.Cryptography.Native.Apple/Interop.SecKeyRef.Export.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics;
76
using System.Runtime.InteropServices;

src/libraries/Common/src/Interop/OSX/System.Security.Cryptography.Native.Apple/Interop.Ssl.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Collections.Generic;
76
using System.Diagnostics;

src/libraries/Common/src/Interop/OSX/System.Security.Cryptography.Native.Apple/Interop.SslErr.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65

76
internal static partial class Interop

src/libraries/Common/src/Interop/OSX/System.Security.Cryptography.Native.Apple/Interop.X509.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics;
76
using System.Runtime.InteropServices;

src/libraries/Common/src/Interop/Unix/Interop.IOErrors.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics;
76
using System.IO;

src/libraries/Common/src/Interop/Unix/System.Native/Interop.ForkAndExecProcess.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
5-
64
using System;
75
using System.ComponentModel;
86
using System.Diagnostics;

src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetGroupList.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
5-
64
using System;
75
using System.Runtime.InteropServices;
86

src/libraries/Common/src/Interop/Unix/System.Native/Interop.ReadLink.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System.Runtime.InteropServices;
65
using System.Buffers;
76
using System.Text;

src/libraries/Common/src/Interop/Unix/System.Net.Security.Native/Interop.GssApiException.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Collections.Generic;
76
using System.Diagnostics;

src/libraries/Common/src/Interop/Unix/System.Net.Security.Native/Interop.NetSecurityNative.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics;
76
using System.Runtime.InteropServices;

src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.Bignum.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics.CodeAnalysis;
76
using System.Runtime.InteropServices;

src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.Crypto.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics;
76
using System.Runtime.InteropServices;

src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.Dsa.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics;
76
using System.Runtime.InteropServices;

src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.ERR.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics;
76
using System.Runtime.InteropServices;

src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.EcDsa.ImportExport.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System.Diagnostics;
65
using System.Runtime.InteropServices;
76
using System.Security.Cryptography;

src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.EcKey.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using Microsoft.Win32.SafeHandles;
65
using System;
76
using System.Diagnostics;

src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.Rsa.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics;
76
using System.Runtime.InteropServices;

src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.Ssl.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Diagnostics;
76
using System.Net.Security;

src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.X509Name.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Runtime.InteropServices;
76
using System.Security.Cryptography.X509Certificates;

src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.X509StoreCtx.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Runtime.InteropServices;
76
using Microsoft.Win32.SafeHandles;

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.CreateProcessWithLogon.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
5-
64
using System;
75
using System.Runtime.InteropServices;
86
using System.Text;

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.CryptAcquireContext.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System;
65
using System.Runtime.InteropServices;
76
using System.Security.Cryptography;

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.LookupPrivilegeValue.cs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using System.Runtime.InteropServices;
55

6-
#nullable enable
76
internal partial class Interop
87
{
98
internal partial class Advapi32

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.RegCreateKeyEx.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
#if REGISTRY_ASSEMBLY
65
using Microsoft.Win32.SafeHandles;
76
#else

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.RegDeleteValue.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
#if REGISTRY_ASSEMBLY
65
using Microsoft.Win32.SafeHandles;
76
#else

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.RegEnumKeyEx.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
#if REGISTRY_ASSEMBLY
65
using Microsoft.Win32.SafeHandles;
76
#else

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.RegEnumValue.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
#if REGISTRY_ASSEMBLY
65
using Microsoft.Win32.SafeHandles;
76
#else

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.RegOpenKeyEx.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
#if REGISTRY_ASSEMBLY
65
using Microsoft.Win32.SafeHandles;
76
#else

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.RegQueryInfoKey.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
#if REGISTRY_ASSEMBLY
65
using Microsoft.Win32.SafeHandles;
76
#else

src/libraries/Common/src/Interop/Windows/Advapi32/Interop.RegSetValueEx.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
#if REGISTRY_ASSEMBLY
65
using Microsoft.Win32.SafeHandles;
76
#else

src/libraries/Common/src/Interop/Windows/Advapi32/SafeHashHandle.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
#nullable enable
54
using System.Diagnostics;
65
using Microsoft.Win32.SafeHandles;
76

0 commit comments

Comments
 (0)