Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirwin committed Feb 14, 2025
1 parent 70869cd commit 66a2861
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Lucene.Net/Support/ConcurrentHashSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Threading;
using JCG = J2N.Collections.Generic;
#nullable enable

namespace Lucene.Net.Support
Expand All @@ -44,7 +45,8 @@ namespace Lucene.Net.Support
/// concurrently from multiple threads.
/// </remarks>
[DebuggerDisplay("Count = {Count}")]
internal class ConcurrentHashSet<T> : ISet<T>, IReadOnlyCollection<T>
// ReSharper disable once RedundantExtendsListEntry
internal class ConcurrentHashSet<T> : ISet<T>, IReadOnlyCollection<T>, ICollection<T>
{
private const int DefaultCapacity = 31;
private const int MaxLockNumber = 1024;
Expand Down Expand Up @@ -291,7 +293,7 @@ private ConcurrentHashSet(int concurrencyLevel, int capacity, bool growLockArray

_growLockArray = growLockArray;
_budget = buckets.Length / locks.Length;
_comparer = comparer ?? EqualityComparer<T>.Default;
_comparer = comparer ?? JCG.EqualityComparer<T>.Default;
}

/// <summary>
Expand Down

0 comments on commit 66a2861

Please sign in to comment.