lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [37/50] [abbrv] lucenenet git commit: Lucene.Net.Tests.Highlighter.VectorHighlight.FastVectorHighlighterTest.AnalyzerWrapperAnonymousHelper: suppressed obsolete warning for constructor, removed TODO about building the same class
Date Wed, 25 Jan 2017 03:44:21 GMT
Lucene.Net.Tests.Highlighter.VectorHighlight.FastVectorHighlighterTest.AnalyzerWrapperAnonymousHelper:
suppressed obsolete warning for constructor, removed TODO about building the same class


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

Branch: refs/heads/api-work
Commit: b022d303c9a4c6e2b14fada28025ede5d27978b7
Parents: 0326cc9
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Jan 25 06:26:08 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Wed Jan 25 09:34:48 2017 +0700

----------------------------------------------------------------------
 .../VectorHighlight/FastVectorHighlighterTest.cs         | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b022d303/src/Lucene.Net.Tests.Highlighter/VectorHighlight/FastVectorHighlighterTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Highlighter/VectorHighlight/FastVectorHighlighterTest.cs
b/src/Lucene.Net.Tests.Highlighter/VectorHighlight/FastVectorHighlighterTest.cs
index d9fbf1a..7eea1ae 100644
--- a/src/Lucene.Net.Tests.Highlighter/VectorHighlight/FastVectorHighlighterTest.cs
+++ b/src/Lucene.Net.Tests.Highlighter/VectorHighlight/FastVectorHighlighterTest.cs
@@ -597,15 +597,6 @@ namespace Lucene.Net.Search.VectorHighlight
 
             Analyzer analyzer = new AnalyzerWrapperAnonymousHelper();
 
-            // LUCENENET TODO: anonymous
-            //    Analyzer analyzer = new AnalyzerWrapper()
-            //    {
-            //      public Analyzer getWrappedAnalyzer(String fieldName)
-            //{
-            //    return fieldAnalyzers.Get(fieldName);
-            //}
-            //    };
-
             Directory dir = NewDirectory();
             IndexWriter writer = new IndexWriter(dir, NewIndexWriterConfig(TEST_VERSION_CURRENT,
analyzer));
             writer.AddDocument(doc);
@@ -654,6 +645,7 @@ namespace Lucene.Net.Search.VectorHighlight
         {
             IDictionary<String, Analyzer> fieldAnalyzers = new SortedDictionary<String,
Analyzer>();
 
+#pragma warning disable 612, 618 // LUCENENET NOTE: Class calls obsolete (default) constructor
             public AnalyzerWrapperAnonymousHelper()
             {
                 fieldAnalyzers.Put("field", new MockAnalyzer(Random(), MockTokenizer.WHITESPACE,
true, MockTokenFilter.ENGLISH_STOPSET));
@@ -664,6 +656,7 @@ namespace Lucene.Net.Search.VectorHighlight
                 fieldAnalyzers.Put("field_sliced", fieldAnalyzers["field"]);
                 fieldAnalyzers.Put("field_der_red", fieldAnalyzers["field"]);  // This is
required even though we provide a token stream
             }
+#pragma warning restore 612, 618
             protected override Analyzer GetWrappedAnalyzer(string fieldName)
             {
                 return fieldAnalyzers[fieldName];


Mime
View raw message