You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/01/31 17:56:12 UTC

[39/50] [abbrv] lucenenet git commit: Lucene.Net.Suggest.Spell.WordBreakSpellChecker.SuggestWordArrayWrapper: Added WritableArray and SuppressMessage attribute to SuggestWords property

Lucene.Net.Suggest.Spell.WordBreakSpellChecker.SuggestWordArrayWrapper: Added WritableArray and SuppressMessage attribute to SuggestWords property


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

Branch: refs/heads/api-work
Commit: 3a3b0f1db9f4c0a6ce96595597fcd89be39d3559
Parents: c74f829
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Jan 31 19:09:36 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Jan 31 19:09:36 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Suggest/Spell/WordBreakSpellChecker.cs | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3a3b0f1d/src/Lucene.Net.Suggest/Spell/WordBreakSpellChecker.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Suggest/Spell/WordBreakSpellChecker.cs b/src/Lucene.Net.Suggest/Spell/WordBreakSpellChecker.cs
index 008fdba..40c99d0 100644
--- a/src/Lucene.Net.Suggest/Spell/WordBreakSpellChecker.cs
+++ b/src/Lucene.Net.Suggest/Spell/WordBreakSpellChecker.cs
@@ -2,6 +2,7 @@
 using Lucene.Net.Support;
 using System;
 using System.Collections.Generic;
+using System.Diagnostics.CodeAnalysis;
 
 namespace Lucene.Net.Search.Spell
 {
@@ -524,6 +525,8 @@ namespace Lucene.Net.Search.Spell
                 this.freqMax = aFreqMax;
             }
 
+            [WritableArray]
+            [SuppressMessage("Microsoft.Performance", "CA1819", Justification = "Lucene's design requires some writable array properties")]
             public SuggestWord[] SuggestWords
             {
                 get { return suggestWords; }