Skip to content

Commit

Permalink
Change Array.Empty<T> to Arrays.Empty<T> until apache#916 is done in …
Browse files Browse the repository at this point in the history
…a separate PR
  • Loading branch information
paulirwin committed Feb 24, 2024
1 parent 1e00806 commit e72dd6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Lucene.Net.Tests/Search/Spans/TestSpans.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using Lucene.Net.Documents;
using Lucene.Net.Index;
using Lucene.Net.Index.Extensions;
using Lucene.Net.Support;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using Assert = Lucene.Net.TestFramework.Assert;

Expand Down Expand Up @@ -373,8 +373,8 @@ private void TstNextSpans(Spans spans, int doc, int start, int end)
[Test]
public virtual void TestSpanOrEmpty()
{
// LUCENENET: Using Array.Empty<T>() instead of new string[0] to reduce allocations
Spans spans = OrSpans(Array.Empty<string>());
// LUCENENET: Using Arrays.Empty<T>() instead of new string[0] to reduce allocations
Spans spans = OrSpans(Arrays.Empty<string>());
Assert.IsFalse(spans.MoveNext(), "empty next");

SpanOrQuery a = new SpanOrQuery();
Expand Down

0 comments on commit e72dd6b

Please sign in to comment.