You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by la...@apache.org on 2023/04/12 19:19:29 UTC
[lucenenet] branch master updated: add ignore attributes (#822)
This is an automated email from the ASF dual-hosted git repository.
laimis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git
The following commit(s) were added to refs/heads/master by this push:
new 3f283db92 add ignore attributes (#822)
3f283db92 is described below
commit 3f283db926cea057eb5974a17973bd7c5039f2c1
Author: Laimonas Simutis <la...@gmail.com>
AuthorDate: Wed Apr 12 12:19:24 2023 -0700
add ignore attributes (#822)
---
src/Lucene.Net/Index/DocTermOrds.cs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/Lucene.Net/Index/DocTermOrds.cs b/src/Lucene.Net/Index/DocTermOrds.cs
index 457f38aca..5b61c980e 100644
--- a/src/Lucene.Net/Index/DocTermOrds.cs
+++ b/src/Lucene.Net/Index/DocTermOrds.cs
@@ -3,6 +3,7 @@ using Lucene.Net.Diagnostics;
using Lucene.Net.Support;
using System;
using System.Collections.Generic;
+using System.Diagnostics.CodeAnalysis;
using JCG = J2N.Collections.Generic;
namespace Lucene.Net.Index
@@ -241,6 +242,8 @@ namespace Lucene.Net.Index
/// <= <paramref name="maxTermDocFreq"/>, with a custom indexing interval
/// (default is every 128nd term).
/// </summary>
+ [SuppressMessage("CodeQuality", "IDE0079:Remove unnecessary suppression", Justification = "This is a SonarCloud issue")]
+ [SuppressMessage("CodeQuality", "S1699:Constructors should only call non-overridable methods", Justification = "A workaround exists that involves using a protected constructor")]
public DocTermOrds(AtomicReader reader, IBits liveDocs, string field, BytesRef termPrefix, int maxTermDocFreq, int indexIntervalBits)
: this(field, maxTermDocFreq, indexIntervalBits)
{