Remove stale CA1419 suppressions (#71406)
authorStephen Toub <stoub@microsoft.com>
Wed, 29 Jun 2022 12:27:57 +0000 (08:27 -0400)
committerGitHub <noreply@github.com>
Wed, 29 Jun 2022 12:27:57 +0000 (08:27 -0400)
27 files changed:
src/libraries/Common/src/Microsoft/Win32/SafeHandles/SafeUnicodeStringHandle.cs
src/libraries/Common/src/System/Net/Security/Unix/SafeDeleteNegoContext.cs
src/libraries/Common/src/System/Net/Security/Unix/SafeDeleteSslContext.cs
src/libraries/Common/src/System/Net/Security/Unix/SafeFreeCertContext.cs
src/libraries/Common/src/System/Net/Security/Unix/SafeFreeNegoCredentials.cs
src/libraries/Common/src/System/Net/Security/Unix/SafeFreeSslCredentials.cs
src/libraries/System.Data.Odbc/src/System/Data/Odbc/OdbcConnectionHandle.cs
src/libraries/System.Data.Odbc/src/System/Data/Odbc/OdbcHandle.cs
src/libraries/System.Data.Odbc/src/System/Data/Odbc/OdbcStatementHandle.cs
src/libraries/System.Data.Odbc/src/System/Data/Odbc/OdbcUtils.cs
src/libraries/System.Data.OleDb/src/OleDbTransaction.cs
src/libraries/System.Data.OleDb/src/OleDbWrapper.cs
src/libraries/System.Data.OleDb/src/PropertyIDSet.cs
src/libraries/System.Data.OleDb/src/PropertyInfoSet.cs
src/libraries/System.Data.OleDb/src/RowBinding.cs
src/libraries/System.Data.OleDb/src/SafeHandles.cs
src/libraries/System.DirectoryServices.Protocols/src/System/DirectoryServices/Protocols/Interop/SafeHandles.cs
src/libraries/System.Net.Http.WinHttpHandler/src/System/Net/Http/WinHttpChannelBinding.cs
src/libraries/System.Net.HttpListener/src/System/Net/Windows/HttpServerSessionHandle.cs
src/libraries/System.Net.Security/src/System/Net/Security/Pal.Android/SafeDeleteSslContext.cs
src/libraries/System.Net.Security/src/System/Net/Security/Pal.Managed/SafeChannelBindingHandle.cs
src/libraries/System.Net.Security/src/System/Net/Security/Pal.Managed/SafeFreeSslCredentials.cs
src/libraries/System.Net.Security/src/System/Net/Security/Pal.OSX/SafeDeleteSslContext.cs
src/libraries/System.Security.Cryptography.Pkcs/src/Microsoft/Win32/SafeHandles/SafeCertContextHandle.cs
src/libraries/System.Security.Cryptography.Pkcs/src/Microsoft/Win32/SafeHandles/SafeProvOrNCryptKeyHandleUwp.cs
src/libraries/System.Security.Cryptography/src/Microsoft/Win32/SafeHandles/SafePasswordHandle.cs
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/SafeLocalAllocHandle.cs

index 0c27a20..e58bfd1 100644 (file)
@@ -4,8 +4,6 @@
 using System;
 using System.Runtime.InteropServices;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace Microsoft.Win32.SafeHandles
 {
     /// <summary>
index 2e5a0b8..123a28a 100644 (file)
@@ -7,8 +7,6 @@ using System.Runtime.InteropServices;
 using System.Text;
 using Microsoft.Win32.SafeHandles;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Net.Security
 {
     internal sealed class SafeDeleteNegoContext : SafeDeleteContext
index 89ac9b6..f35a693 100644 (file)
@@ -11,8 +11,6 @@ using System.Security.Authentication.ExtendedProtection;
 using System.Security.Cryptography;
 using System.Security.Cryptography.X509Certificates;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Net.Security
 {
     internal sealed class SafeDeleteSslContext : SafeDeleteContext
index ca7438a..c5fa820 100644 (file)
@@ -8,8 +8,6 @@ using System.Runtime.InteropServices;
 using System.Security.Cryptography;
 using System.Security.Cryptography.X509Certificates;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Net.Security
 {
 #if DEBUG
index fef571d..58d1942 100644 (file)
@@ -7,8 +7,6 @@ using System.Runtime.InteropServices;
 using System.Text;
 using Microsoft.Win32.SafeHandles;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Net.Security
 {
     internal sealed class SafeFreeNegoCredentials : SafeFreeCredentials
index ae6bab3..de76466 100644 (file)
@@ -10,8 +10,6 @@ using System.Security.Authentication.ExtendedProtection;
 using System.Security.Cryptography;
 using System.Security.Cryptography.X509Certificates;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Net.Security
 {
     internal sealed class SafeFreeSslCredentials : SafeFreeCredentials
index b573da4..1e428ff 100644 (file)
@@ -6,8 +6,6 @@ using System.Diagnostics;
 using System.Runtime.CompilerServices;
 using System.Runtime.ConstrainedExecution;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Data.Odbc
 {
     internal sealed class OdbcConnectionHandle : OdbcHandle
index 0279e60..cdf45ca 100644 (file)
@@ -7,8 +7,6 @@ using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 using System.Text;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Data.Odbc
 {
     internal abstract class OdbcHandle : SafeHandle
index cdbd81a..2546c0b 100644 (file)
@@ -4,8 +4,6 @@
 using System.Data.Common;
 using System.Runtime.InteropServices;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Data.Odbc
 {
     internal readonly struct SQLLEN
index a9c6e5f..f4e81ca 100644 (file)
@@ -6,8 +6,6 @@ using System.Diagnostics;                   // Debug services
 using System.Runtime.InteropServices;
 using System.Text;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Data.Odbc
 {
     internal sealed class CNativeBuffer : System.Data.ProviderBase.DbBuffer
index 723e37c..8f99ec2 100644 (file)
@@ -7,8 +7,6 @@ using System.Diagnostics;
 using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Data.OleDb
 {
     public sealed class OleDbTransaction : DbTransaction
index bb7f000..6c1114d 100644 (file)
@@ -7,8 +7,6 @@ using System.Diagnostics;
 using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Data.OleDb
 {
     // SafeHandle wrapper around 'DataLinks' object which pools the native OLE DB providers.
index 5aca373..52b854c 100644 (file)
@@ -5,8 +5,6 @@ using System.Data.Common;
 using System.Data.ProviderBase;
 using System.Runtime.InteropServices;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Data.OleDb
 {
     internal sealed class PropertyIDSet : DbBuffer
index c17c30c..1ae3aa2 100644 (file)
@@ -7,8 +7,6 @@ using System.Globalization;
 using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Data.OleDb
 {
     internal sealed class OleDbPropertyInfo
index edb4915..fb83a47 100644 (file)
@@ -6,8 +6,6 @@ using System.Diagnostics;
 using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Data.OleDb
 {
     internal sealed class RowBinding : System.Data.ProviderBase.DbBuffer
index 534d865..3d918e2 100644 (file)
@@ -9,8 +9,6 @@ using System.Runtime.InteropServices;
 using System.Runtime.Versioning;
 using static System.Data.Common.UnsafeNativeMethods;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Data.OleDb
 {
     internal sealed class DualCoTaskMem : SafeHandle
index 4f2ac1c..3dc2a58 100644 (file)
@@ -4,8 +4,6 @@
 using System.Runtime.InteropServices;
 using Microsoft.Win32.SafeHandles;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.DirectoryServices.Protocols
 {
     internal sealed class HGlobalMemHandle : SafeHandleZeroOrMinusOneIsInvalid
index de47f6c..a5e4881 100644 (file)
@@ -7,8 +7,6 @@ using System.Security.Authentication.ExtendedProtection;
 using System.Text;
 using SafeWinHttpHandle = Interop.WinHttp.SafeWinHttpHandle;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Net.Http
 {
     internal sealed class WinHttpChannelBinding : ChannelBinding
index f180fef..671eae6 100644 (file)
@@ -4,8 +4,6 @@
 using Microsoft.Win32.SafeHandles;
 using System.Threading;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Net
 {
     //
index 417cfe3..d653d56 100644 (file)
@@ -13,8 +13,6 @@ using Microsoft.Win32.SafeHandles;
 using PAL_KeyAlgorithm = Interop.AndroidCrypto.PAL_KeyAlgorithm;
 using PAL_SSLStreamStatus = Interop.AndroidCrypto.PAL_SSLStreamStatus;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Net
 {
     internal sealed class SafeDeleteSslContext : SafeDeleteContext
index 518ddfc..35daf73 100644 (file)
@@ -6,8 +6,6 @@ using System.Runtime.InteropServices;
 using System.Security.Authentication.ExtendedProtection;
 using System.Text;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Net.Security
 {
     internal sealed class SafeChannelBindingHandle : ChannelBinding
index c047b88..24a4e7b 100644 (file)
@@ -6,8 +6,6 @@ using System.Net.Security;
 using System.Security.Authentication;
 using System.Security.Cryptography.X509Certificates;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Net
 {
     internal sealed class SafeFreeSslCredentials : SafeFreeCredentials
index 1b523cc..8db7686 100644 (file)
@@ -9,8 +9,6 @@ using System.Security.Authentication;
 using System.Security.Cryptography.X509Certificates;
 using Microsoft.Win32.SafeHandles;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Net
 {
     internal sealed class SafeDeleteSslContext : SafeDeleteContext
index 5496b23..50293c4 100644 (file)
@@ -7,8 +7,6 @@ using System.Runtime.InteropServices;
 
 using static Interop.Crypt32;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace Microsoft.Win32.SafeHandles
 {
     internal sealed class SafeCertContextHandle : SafeHandle
index 884bf56..a1ac99f 100644 (file)
@@ -7,8 +7,6 @@ using System.Runtime.InteropServices;
 
 using ErrorCode = Interop.NCrypt.ErrorCode;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace Microsoft.Win32.SafeHandles
 {
     //
index f528eae..6ebaa97 100644 (file)
@@ -5,8 +5,6 @@ using System;
 using System.Runtime.InteropServices;
 using System.Security;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace Microsoft.Win32.SafeHandles
 {
     /// <summary>
index 1fe163b..50a6d9f 100644 (file)
@@ -4,8 +4,6 @@
 using Microsoft.Win32.SafeHandles;
 using System.Runtime.InteropServices;
 
-#pragma warning disable CA1419 // TODO https://github.com/dotnet/roslyn-analyzers/issues/5232: not intended for use with P/Invoke
-
 namespace System.Security.Cryptography.X509Certificates
 {
     /// <summary>