Lucene.Net.Core.Index.DocTermOrds: added CLSCompliant(false) to m_tnums field, 
since it is a jagged array, which cannot be made CLS compliant anyway.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/68f2a984
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/68f2a984
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/68f2a984

Branch: refs/heads/api-work
Commit: 68f2a9844fe3c3a260ca31a6caa640d53bc87577
Parents: 91c75cd
Author: Shad Storhaug <[email protected]>
Authored: Wed Mar 1 22:15:40 2017 +0700
Committer: Shad Storhaug <[email protected]>
Committed: Thu Mar 2 08:08:38 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Index/DocTermOrds.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/68f2a984/src/Lucene.Net.Core/Index/DocTermOrds.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Index/DocTermOrds.cs 
b/src/Lucene.Net.Core/Index/DocTermOrds.cs
index 5a6884c..25b61f5 100644
--- a/src/Lucene.Net.Core/Index/DocTermOrds.cs
+++ b/src/Lucene.Net.Core/Index/DocTermOrds.cs
@@ -149,7 +149,8 @@ namespace Lucene.Net.Index
 
         /// <summary>
         /// Holds term ords for documents. </summary>
-        protected sbyte[][] m_tnums = new sbyte[256][]; // LUCENENET TODO: can 
this be byte??
+        [CLSCompliant(false)] // LUCENENET NOTE: Since jagged arrays are not 
CLS compliant anyway, this would need to be byte[,] to be CLS compliant - not 
sure it is worth the effort
+        protected sbyte[][] m_tnums = new sbyte[256][];
 
         /// <summary>
         /// Total bytes (sum of term lengths) for all indexed terms. </summary>

Reply via email to