lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [39/50] [abbrv] lucenenet git commit: Lucene.Net.Suggest.Spell.WordBreakSpellChecker.SuggestWordArrayWrapper: Added WritableArray and SuppressMessage attribute to SuggestWords property
Date Tue, 31 Jan 2017 17:56:12 GMT
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 <shad@shadstorhaug.com>
Authored: Tue Jan 31 19:09:36 2017 +0700
Committer: Shad Storhaug <shad@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; }


Mime
View raw message