Skip to content

Commit

Permalink
Use Arrays.Empty<T> in TestBoolean2 instead of Array.Empty<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirwin committed Feb 24, 2024
1 parent 715534c commit e6cb611
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Lucene.Net.Tests/Search/TestBoolean2.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Lucene.Net.Documents;
using Lucene.Net.Index.Extensions;
using Lucene.Net.Support;
using NUnit.Framework;
using RandomizedTesting.Generators;
using System;
Expand Down Expand Up @@ -229,7 +230,7 @@ public virtual void TestQueries07()
query.Add(new TermQuery(new Term(field, "w3")), Occur.MUST_NOT);
query.Add(new TermQuery(new Term(field, "xx")), Occur.MUST_NOT);
query.Add(new TermQuery(new Term(field, "w5")), Occur.MUST_NOT);
int[] expDocNrs = Array.Empty<int>(); // LUCENENET: instead of new int[] { };
int[] expDocNrs = Arrays.Empty<int>(); // LUCENENET: instead of new int[] { };
QueriesTest(query, expDocNrs);
}

Expand Down

0 comments on commit e6cb611

Please sign in to comment.