diff --git a/src/SixLabors.Core/HashCode.cs b/src/SixLabors.Core/HashCode.cs index ae3e83c52..be0e8bd3a 100644 --- a/src/SixLabors.Core/HashCode.cs +++ b/src/SixLabors.Core/HashCode.cs @@ -1,4 +1,4 @@ -#pragma warning disable SA1636, SA1600, SA1503, SA1202, SA1101, SA1132, SA1309, SA1520, SA1108, SA1203, SA1028, SA1512 +#pragma warning disable SA1636, SA1600, SA1503, SA1202, SA1101, SA1132, SA1309, SA1520, SA1108, SA1203, SA1028, SA1512, SA1308 // SOURCE: https://github.com/dotnet/corefx/blob/master/src/Common/src/CoreLib/System/HashCode.cs @@ -57,7 +57,9 @@ namespace System // https://github.com/Cyan4973/xxHash internal struct HashCode { +#pragma warning disable SA1311 // Static readonly fields should begin with upper-case letter private static readonly uint s_seed = GenerateGlobalSeed(); +#pragma warning restore SA1311 // Static readonly fields should begin with upper-case letter private const uint Prime1 = 2654435761U; private const uint Prime2 = 2246822519U; @@ -415,6 +417,7 @@ namespace System } #pragma warning disable 0809 + // Obsolete member 'memberA' overrides non-obsolete member 'memberB'. // Disallowing GetHashCode and Equals is by design @@ -440,4 +443,4 @@ namespace System } #endif -#pragma warning restore SA1636, SA1600, SA1503, SA1202, SA1101, SA1132, SA1309, SA1520, SA1108, SA1203, SA1028, SA1512 \ No newline at end of file +#pragma warning restore SA1636, SA1600, SA1503, SA1202, SA1101, SA1132, SA1309, SA1520, SA1108, SA1203, SA1028, SA1512, SA1308 \ No newline at end of file diff --git a/src/SixLabors.Core/Memory/ArrayPoolMemoryAllocator.CommonFactoryMethods.cs b/src/SixLabors.Core/Memory/ArrayPoolMemoryAllocator.CommonFactoryMethods.cs index f35547810..c56453b00 100644 --- a/src/SixLabors.Core/Memory/ArrayPoolMemoryAllocator.CommonFactoryMethods.cs +++ b/src/SixLabors.Core/Memory/ArrayPoolMemoryAllocator.CommonFactoryMethods.cs @@ -42,7 +42,6 @@ namespace SixLabors.Memory DefaultNormalPoolBucketCount); } - /// /// For environments with very limited memory capabilities, only small buffers like image rows are pooled. /// @@ -61,7 +60,6 @@ namespace SixLabors.Memory return new ArrayPoolMemoryAllocator(1024 * 1024, 32 * 1024, 16, 24); } - /// /// For environments where memory capabilities are not an issue, the maximum amount of array requests are pooled which results in optimal throughput. ///