diff --git a/ArchiSteamFarm/Collections/ConcurrentHashSet.cs b/ArchiSteamFarm/Collections/ConcurrentHashSet.cs index 9db493ead..f7f97ce52 100644 --- a/ArchiSteamFarm/Collections/ConcurrentHashSet.cs +++ b/ArchiSteamFarm/Collections/ConcurrentHashSet.cs @@ -127,6 +127,8 @@ namespace ArchiSteamFarm.Collections { } } + [SuppressMessage("ReSharper", "AnnotationConflictInHierarchy")] + [SuppressMessage("ReSharper", "AssignNullToNotNullAttribute")] void ICollection.Add([NotNull] T item) => Add(item); IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); diff --git a/ArchiSteamFarm/Collections/ConcurrentSortedHashSet.cs b/ArchiSteamFarm/Collections/ConcurrentSortedHashSet.cs index 3a6e57667..b2a64ce14 100644 --- a/ArchiSteamFarm/Collections/ConcurrentSortedHashSet.cs +++ b/ArchiSteamFarm/Collections/ConcurrentSortedHashSet.cs @@ -22,6 +22,7 @@ using System; using System.Collections; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Threading; using JetBrains.Annotations; @@ -74,6 +75,7 @@ namespace ArchiSteamFarm.Collections { } } + [SuppressMessage("ReSharper", "AnnotationRedundancyInHierarchy")] public void CopyTo([NotNull] T[] array, int arrayIndex) { CollectionSemaphore.Wait(); @@ -97,6 +99,7 @@ namespace ArchiSteamFarm.Collections { } [NotNull] + [SuppressMessage("ReSharper", "AnnotationRedundancyInHierarchy")] public IEnumerator GetEnumerator() => new ConcurrentEnumerator(BackingCollection, CollectionSemaphore); public void IntersectWith(IEnumerable other) { @@ -199,9 +202,11 @@ namespace ArchiSteamFarm.Collections { } } + [SuppressMessage("ReSharper", "AnnotationConflictInHierarchy")] void ICollection.Add([NotNull] T item) => Add(item); [NotNull] + [SuppressMessage("ReSharper", "AnnotationRedundancyInHierarchy")] IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); internal void ReplaceWith([NotNull] IEnumerable other) {