lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [05/26] lucenenet git commit: fix build
Date Fri, 14 Nov 2014 11:59:20 GMT
fix build


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

Branch: refs/heads/master
Commit: e4e81d0c3feb7ff7762d36c978942b8746bf5f42
Parents: 931d42e
Author: eladmarg <eladmarg@gmail.com>
Authored: Sat Nov 8 18:08:43 2014 -0800
Committer: eladmarg <eladmarg@gmail.com>
Committed: Sat Nov 8 18:08:43 2014 -0800

----------------------------------------------------------------------
 src/Lucene.Net.Core/Analysis/Analyzer.cs            |  2 +-
 src/Lucene.Net.Core/Analysis/AnalyzerWrapper.cs     |  8 +++++---
 .../Analysis/MockAnalyzer.cs                        |  2 +-
 .../Analysis/MockBytesAnalyzer.cs                   |  2 +-
 .../Analysis/MockPayloadAnalyzer.cs                 |  2 +-
 .../Analysis/MockTokenizer.cs                       |  6 +++---
 .../core/Analysis/TestGraphTokenizers.cs            | 16 ++++++++--------
 .../core/Analysis/TestLookaheadTokenFilter.cs       |  6 +++---
 .../core/Analysis/TestMockAnalyzer.cs               |  4 ++--
 .../core/Analysis/TestMockCharFilter.cs             |  2 +-
 .../Codecs/Lucene41/TestBlockPostingsFormat3.cs     |  2 +-
 .../core/Index/TestDocInverterPerFieldErrorInfo.cs  |  2 +-
 .../core/Index/TestDocumentWriter.cs                |  4 ++--
 src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs  |  8 ++++----
 .../core/Index/TestIndexWriterCommit.cs             |  4 ++--
 .../core/Index/TestIndexWriterDelete.cs             |  2 +-
 .../core/Index/TestIndexWriterExceptions.cs         |  8 ++++----
 .../core/Index/TestLazyProxSkipping.cs              |  2 +-
 .../core/Index/TestMultiLevelSkipList.cs            |  2 +-
 src/Lucene.Net.Tests/core/Index/TestPayloads.cs     |  2 +-
 .../core/Index/TestTermVectorsReader.cs             |  2 +-
 src/Lucene.Net.Tests/core/Index/TestTermdocPerf.cs  |  2 +-
 .../core/Search/FuzzyTermOnShortTermsTest.cs        |  2 +-
 .../core/Search/Payloads/PayloadHelper.cs           |  2 +-
 .../core/Search/Payloads/TestPayloadNearQuery.cs    |  2 +-
 .../core/Search/Payloads/TestPayloadTermQuery.cs    |  2 +-
 .../core/Search/Spans/TestBasics.cs                 |  2 +-
 .../core/Search/Spans/TestPayloadSpans.cs           |  4 ++--
 src/Lucene.Net.Tests/core/Search/TestPhraseQuery.cs |  2 +-
 .../core/Search/TestPositionIncrement.cs            |  2 +-
 .../core/Search/TestTermRangeQuery.cs               |  2 +-
 src/Lucene.Net.Tests/core/Util/TestQueryBuilder.cs  |  6 +++---
 32 files changed, 59 insertions(+), 57 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Core/Analysis/Analyzer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Analysis/Analyzer.cs b/src/Lucene.Net.Core/Analysis/Analyzer.cs
index 0ae0c8e..c183885 100644
--- a/src/Lucene.Net.Core/Analysis/Analyzer.cs
+++ b/src/Lucene.Net.Core/Analysis/Analyzer.cs
@@ -104,7 +104,7 @@ namespace Lucene.Net.Analysis
         /// <param name="reader">
         ///          the reader passed to the <seealso cref="Tokenizer"/> constructor
</param>
         /// <returns> the <seealso cref="TokenStreamComponents"/> for this analyzer.
</returns>
-        protected abstract TokenStreamComponents CreateComponents(string fieldName, TextReader
reader);
+        public abstract TokenStreamComponents CreateComponents(string fieldName, TextReader
reader);
 
         /// <summary>
         /// Returns a TokenStream suitable for <code>fieldName</code>, tokenizing

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Core/Analysis/AnalyzerWrapper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Analysis/AnalyzerWrapper.cs b/src/Lucene.Net.Core/Analysis/AnalyzerWrapper.cs
index f58467b..6d58110 100644
--- a/src/Lucene.Net.Core/Analysis/AnalyzerWrapper.cs
+++ b/src/Lucene.Net.Core/Analysis/AnalyzerWrapper.cs
@@ -90,14 +90,16 @@ namespace Lucene.Net.Analysis
         /// <param name="reader">
         ///          the reader to wrap </param>
         /// <returns> the wrapped reader </returns>
-        protected internal virtual TextReader WrapReader(string fieldName, TextReader reader)
+        protected virtual TextReader WrapReader(string fieldName, TextReader reader)
         {
             return reader;
         }
 
-        protected override sealed TokenStreamComponents CreateComponents(string fieldName,
TextReader aReader)
+        public override sealed TokenStreamComponents CreateComponents(string fieldName, TextReader
aReader)
         {
-            return WrapComponents(fieldName, GetWrappedAnalyzer(fieldName).CreateComponents(fieldName,
aReader));
+            var wrappedAnalyzer = GetWrappedAnalyzer(fieldName);
+            var component = wrappedAnalyzer.CreateComponents(fieldName, aReader);
+            return WrapComponents(fieldName, component);
         }
 
         public override int GetPositionIncrementGap(string fieldName)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.TestFramework/Analysis/MockAnalyzer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Analysis/MockAnalyzer.cs b/src/Lucene.Net.TestFramework/Analysis/MockAnalyzer.cs
index 37fe8cd..9a1b883 100644
--- a/src/Lucene.Net.TestFramework/Analysis/MockAnalyzer.cs
+++ b/src/Lucene.Net.TestFramework/Analysis/MockAnalyzer.cs
@@ -89,7 +89,7 @@ namespace Lucene.Net.Analysis
         {
         }
 
-        protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+        public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
         {
             MockTokenizer tokenizer = new MockTokenizer(reader, RunAutomaton, LowerCase,
MaxTokenLength_Renamed);
             tokenizer.EnableChecks = EnableChecks_Renamed;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.TestFramework/Analysis/MockBytesAnalyzer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Analysis/MockBytesAnalyzer.cs b/src/Lucene.Net.TestFramework/Analysis/MockBytesAnalyzer.cs
index 12934df..6967b75 100644
--- a/src/Lucene.Net.TestFramework/Analysis/MockBytesAnalyzer.cs
+++ b/src/Lucene.Net.TestFramework/Analysis/MockBytesAnalyzer.cs
@@ -26,7 +26,7 @@ namespace Lucene.Net.Analysis
     {
         private readonly MockBytesAttributeFactory Factory = new MockBytesAttributeFactory();
 
-        protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+        public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
         {
             Tokenizer t = new MockTokenizer(Factory, reader, MockTokenizer.KEYWORD, false,
MockTokenizer.DEFAULT_MAX_TOKEN_LENGTH);
             return new TokenStreamComponents(t);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.TestFramework/Analysis/MockPayloadAnalyzer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Analysis/MockPayloadAnalyzer.cs b/src/Lucene.Net.TestFramework/Analysis/MockPayloadAnalyzer.cs
index 60ee80e..29f783e 100644
--- a/src/Lucene.Net.TestFramework/Analysis/MockPayloadAnalyzer.cs
+++ b/src/Lucene.Net.TestFramework/Analysis/MockPayloadAnalyzer.cs
@@ -31,7 +31,7 @@ namespace Lucene.Net.Analysis
     /// </summary>
     public sealed class MockPayloadAnalyzer : Analyzer
     {
-        protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+        public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
         {
             Tokenizer result = new MockTokenizer(reader, MockTokenizer.WHITESPACE, true);
             return new TokenStreamComponents(result, new MockPayloadFilter(result, fieldName));

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.TestFramework/Analysis/MockTokenizer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Analysis/MockTokenizer.cs b/src/Lucene.Net.TestFramework/Analysis/MockTokenizer.cs
index 5fa4ae3..7cb9f28 100644
--- a/src/Lucene.Net.TestFramework/Analysis/MockTokenizer.cs
+++ b/src/Lucene.Net.TestFramework/Analysis/MockTokenizer.cs
@@ -247,14 +247,14 @@ namespace Lucene.Net.Analysis
                     {
                         // read(char[])
                         char[] c = new char[1];
-                        int ret = Input.Read(c, 0, c.Length);
+                        int ret = input.Read(c, 0, c.Length);
                         return ret == 0 ? -1 : c[0];
                     }
                 case 1:
                     {
                         // read(char[], int, int)
                         char[] c = new char[2];
-                        int ret = Input.Read(c, 1, 1);
+                        int ret = input.Read(c, 1, 1);
                         return ret == 0 ? -1 : c[1];
                     }
                 /* LUCENE TO-DO not sure if needed, CharBuffer not supported
@@ -268,7 +268,7 @@ namespace Lucene.Net.Analysis
                   }*/
                 default:
                     // read()
-                    return Input.Read();
+                    return input.Read();
             }
         }
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Analysis/TestGraphTokenizers.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Analysis/TestGraphTokenizers.cs b/src/Lucene.Net.Tests/core/Analysis/TestGraphTokenizers.cs
index 4fe19b1..e09f68b 100644
--- a/src/Lucene.Net.Tests/core/Analysis/TestGraphTokenizers.cs
+++ b/src/Lucene.Net.Tests/core/Analysis/TestGraphTokenizers.cs
@@ -204,7 +204,7 @@ namespace Lucene.Net.Analysis
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer t = new MockTokenizer(reader, MockTokenizer.WHITESPACE, false);
                 TokenStream t2 = new MockGraphTokenFilter(Random(), t);
@@ -239,7 +239,7 @@ namespace Lucene.Net.Analysis
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer t = new GraphTokenizer(reader);
                 TokenStream t2 = new MockGraphTokenFilter(Random(), t);
@@ -328,7 +328,7 @@ namespace Lucene.Net.Analysis
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer t = new MockTokenizer(reader, MockTokenizer.WHITESPACE, false);
                 TokenStream t2 = new MockGraphTokenFilter(Random(), t);
@@ -368,7 +368,7 @@ namespace Lucene.Net.Analysis
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer t = new MockTokenizer(reader, MockTokenizer.WHITESPACE, false);
                 TokenStream t2 = new RemoveATokens(t);
@@ -405,7 +405,7 @@ namespace Lucene.Net.Analysis
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer t = new MockTokenizer(reader, MockTokenizer.WHITESPACE, false);
                 TokenStream t2 = new MockGraphTokenFilter(Random(), t);
@@ -449,7 +449,7 @@ namespace Lucene.Net.Analysis
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer t = new MockTokenizer(reader, MockTokenizer.WHITESPACE, false);
                 TokenStream t1 = new MockGraphTokenFilter(Random(), t);
@@ -486,7 +486,7 @@ namespace Lucene.Net.Analysis
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer t = new MockTokenizer(reader, MockTokenizer.WHITESPACE, false);
                 TokenStream t1 = new MockGraphTokenFilter(Random(), t);
@@ -523,7 +523,7 @@ namespace Lucene.Net.Analysis
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer t = new MockTokenizer(reader, MockTokenizer.WHITESPACE, false);
                 TokenStream t1 = new MockHoleInjectingTokenFilter(Random(), t);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Analysis/TestLookaheadTokenFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Analysis/TestLookaheadTokenFilter.cs b/src/Lucene.Net.Tests/core/Analysis/TestLookaheadTokenFilter.cs
index db48b98..04622b8 100644
--- a/src/Lucene.Net.Tests/core/Analysis/TestLookaheadTokenFilter.cs
+++ b/src/Lucene.Net.Tests/core/Analysis/TestLookaheadTokenFilter.cs
@@ -41,7 +41,7 @@ namespace Lucene.Net.Analysis
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Random random = Random();
                 Tokenizer tokenizer = new MockTokenizer(reader, MockTokenizer.WHITESPACE,
random.NextBoolean());
@@ -84,7 +84,7 @@ namespace Lucene.Net.Analysis
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer tokenizer = new MockTokenizer(reader, MockTokenizer.WHITESPACE,
Random().NextBoolean());
                 TokenStream output = new NeverPeeksLookaheadTokenFilter(tokenizer);
@@ -109,7 +109,7 @@ namespace Lucene.Net.Analysis
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer source = new MockTokenizer(reader, MockTokenizer.WHITESPACE, false);
                 TrivialLookaheadFilter filter = new TrivialLookaheadFilter(source);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Analysis/TestMockAnalyzer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Analysis/TestMockAnalyzer.cs b/src/Lucene.Net.Tests/core/Analysis/TestMockAnalyzer.cs
index e39be6a..e185484 100644
--- a/src/Lucene.Net.Tests/core/Analysis/TestMockAnalyzer.cs
+++ b/src/Lucene.Net.Tests/core/Analysis/TestMockAnalyzer.cs
@@ -182,7 +182,7 @@ namespace Lucene.Net.Analysis
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer t = new MockTokenizer(reader, MockTokenizer.WHITESPACE, false,
5);
                 return new TokenStreamComponents(t, t);
@@ -259,7 +259,7 @@ namespace Lucene.Net.Analysis
                 this.Limit = limit;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer t = new MockTokenizer(reader, Dfa, Lowercase, Limit);
                 return new TokenStreamComponents(t, t);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Analysis/TestMockCharFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Analysis/TestMockCharFilter.cs b/src/Lucene.Net.Tests/core/Analysis/TestMockCharFilter.cs
index cabd3f2..03df580 100644
--- a/src/Lucene.Net.Tests/core/Analysis/TestMockCharFilter.cs
+++ b/src/Lucene.Net.Tests/core/Analysis/TestMockCharFilter.cs
@@ -44,7 +44,7 @@ namespace Lucene.Net.Analysis
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer tokenizer = new MockTokenizer(reader, MockTokenizer.WHITESPACE,
false);
                 return new TokenStreamComponents(tokenizer, tokenizer);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat3.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat3.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat3.cs
index ca67a17..138d941 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat3.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat3.cs
@@ -150,7 +150,7 @@ namespace Lucene.Net.Codecs.Lucene41
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer tokenizer = new MockTokenizer(reader);
                 if (fieldName.Contains("payloadsFixed"))

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Index/TestDocInverterPerFieldErrorInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestDocInverterPerFieldErrorInfo.cs b/src/Lucene.Net.Tests/core/Index/TestDocInverterPerFieldErrorInfo.cs
index e2eb471..8ec9e62 100644
--- a/src/Lucene.Net.Tests/core/Index/TestDocInverterPerFieldErrorInfo.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestDocInverterPerFieldErrorInfo.cs
@@ -54,7 +54,7 @@ namespace Lucene.Net.Index
 
         private class ThrowingAnalyzer : Analyzer
         {
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
input)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
input)
             {
                 Tokenizer tokenizer = new MockTokenizer(input);
                 if (fieldName.Equals("distinctiveFieldName"))

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Index/TestDocumentWriter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestDocumentWriter.cs b/src/Lucene.Net.Tests/core/Index/TestDocumentWriter.cs
index e66a2fe..f055b36 100644
--- a/src/Lucene.Net.Tests/core/Index/TestDocumentWriter.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestDocumentWriter.cs
@@ -146,7 +146,7 @@ namespace Lucene.Net.Index
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 return new TokenStreamComponents(new MockTokenizer(reader, MockTokenizer.WHITESPACE,
false));
             }
@@ -195,7 +195,7 @@ namespace Lucene.Net.Index
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer tokenizer = new MockTokenizer(reader, MockTokenizer.WHITESPACE,
false);
                 return new TokenStreamComponents(tokenizer, new TokenFilterAnonymousInnerClassHelper(this,
tokenizer));

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs b/src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs
index a9801f3..8631da7 100644
--- a/src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs
@@ -1866,7 +1866,7 @@ namespace Lucene.Net.Index
 
         internal sealed class StringSplitAnalyzer : Analyzer
         {
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 return new TokenStreamComponents(new StringSplitTokenizer(reader));
             }
@@ -2226,7 +2226,7 @@ namespace Lucene.Net.Index
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 throw new InvalidOperationException("don't invoke me!");
             }
@@ -2301,7 +2301,7 @@ namespace Lucene.Net.Index
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer tokenizer = new MockTokenizer(reader);
                 TokenStream stream = new MockTokenFilter(tokenizer, MockTokenFilter.ENGLISH_STOPSET);
@@ -2346,7 +2346,7 @@ namespace Lucene.Net.Index
                 this.SecondSet = secondSet;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer tokenizer = new MockTokenizer(reader);
                 TokenStream stream = new MockTokenFilter(tokenizer, MockTokenFilter.ENGLISH_STOPSET);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Index/TestIndexWriterCommit.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestIndexWriterCommit.cs b/src/Lucene.Net.Tests/core/Index/TestIndexWriterCommit.cs
index 1a4b4d3..4580112 100644
--- a/src/Lucene.Net.Tests/core/Index/TestIndexWriterCommit.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestIndexWriterCommit.cs
@@ -258,7 +258,7 @@ namespace Lucene.Net.Index
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 return new TokenStreamComponents(new MockTokenizer(reader, MockTokenizer.WHITESPACE,
true));
             }
@@ -276,7 +276,7 @@ namespace Lucene.Net.Index
                 this.Length = length;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer tokenizer = new MockTokenizer(reader, MockTokenizer.WHITESPACE,
true);
                 return new TokenStreamComponents(tokenizer, new MockFixedLengthPayloadFilter(Random(),
tokenizer, Length));

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Index/TestIndexWriterDelete.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestIndexWriterDelete.cs b/src/Lucene.Net.Tests/core/Index/TestIndexWriterDelete.cs
index d5f8513..60dff7e 100644
--- a/src/Lucene.Net.Tests/core/Index/TestIndexWriterDelete.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestIndexWriterDelete.cs
@@ -1192,7 +1192,7 @@ namespace Lucene.Net.Index
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 return new TokenStreamComponents(new MockTokenizer(reader, MockTokenizer.WHITESPACE,
true));
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Index/TestIndexWriterExceptions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestIndexWriterExceptions.cs b/src/Lucene.Net.Tests/core/Index/TestIndexWriterExceptions.cs
index 58b706e..3aa3df3 100644
--- a/src/Lucene.Net.Tests/core/Index/TestIndexWriterExceptions.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestIndexWriterExceptions.cs
@@ -519,7 +519,7 @@ namespace Lucene.Net.Index
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 MockTokenizer tokenizer = new MockTokenizer(reader, MockTokenizer.WHITESPACE,
false);
                 tokenizer.EnableChecks = false; // disable workflow checking as we forcefully
close() in exceptional cases.
@@ -637,7 +637,7 @@ namespace Lucene.Net.Index
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 MockTokenizer tokenizer = new MockTokenizer(reader, MockTokenizer.SIMPLE,
true);
                 tokenizer.EnableChecks = false; // disable workflow checking as we forcefully
close() in exceptional cases.
@@ -873,7 +873,7 @@ namespace Lucene.Net.Index
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 MockTokenizer tokenizer = new MockTokenizer(reader, MockTokenizer.WHITESPACE,
false);
                 tokenizer.EnableChecks = false; // disable workflow checking as we forcefully
close() in exceptional cases.
@@ -972,7 +972,7 @@ namespace Lucene.Net.Index
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 MockTokenizer tokenizer = new MockTokenizer(reader, MockTokenizer.WHITESPACE,
false);
                 tokenizer.EnableChecks = false; // disable workflow checking as we forcefully
close() in exceptional cases.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Index/TestLazyProxSkipping.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestLazyProxSkipping.cs b/src/Lucene.Net.Tests/core/Index/TestLazyProxSkipping.cs
index 59e3e02..4010ec4 100644
--- a/src/Lucene.Net.Tests/core/Index/TestLazyProxSkipping.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestLazyProxSkipping.cs
@@ -121,7 +121,7 @@ namespace Lucene.Net.Index
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 return new TokenStreamComponents(new MockTokenizer(reader, MockTokenizer.WHITESPACE,
true));
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Index/TestMultiLevelSkipList.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestMultiLevelSkipList.cs b/src/Lucene.Net.Tests/core/Index/TestMultiLevelSkipList.cs
index 3caf34c..4a7c39e 100644
--- a/src/Lucene.Net.Tests/core/Index/TestMultiLevelSkipList.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestMultiLevelSkipList.cs
@@ -127,7 +127,7 @@ namespace Lucene.Net.Index
         {
             internal readonly AtomicInteger PayloadCount = new AtomicInteger(-1);
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer tokenizer = new MockTokenizer(reader, MockTokenizer.WHITESPACE,
true);
                 return new TokenStreamComponents(tokenizer, new PayloadFilter(PayloadCount,
tokenizer));

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Index/TestPayloads.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestPayloads.cs b/src/Lucene.Net.Tests/core/Index/TestPayloads.cs
index 903225a..3fc6e51 100644
--- a/src/Lucene.Net.Tests/core/Index/TestPayloads.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestPayloads.cs
@@ -387,7 +387,7 @@ namespace Lucene.Net.Index
                 FieldToData[field] = new PayloadData(data, offset, length);
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 PayloadData payload;
                 FieldToData.TryGetValue(fieldName, out payload);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Index/TestTermVectorsReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestTermVectorsReader.cs b/src/Lucene.Net.Tests/core/Index/TestTermVectorsReader.cs
index 24deec6..7995318 100644
--- a/src/Lucene.Net.Tests/core/Index/TestTermVectorsReader.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestTermVectorsReader.cs
@@ -228,7 +228,7 @@ namespace Lucene.Net.Index
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 return new TokenStreamComponents(new MyTokenizer(OuterInstance, reader));
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Index/TestTermdocPerf.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestTermdocPerf.cs b/src/Lucene.Net.Tests/core/Index/TestTermdocPerf.cs
index fe83c63..5160a75 100644
--- a/src/Lucene.Net.Tests/core/Index/TestTermdocPerf.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestTermdocPerf.cs
@@ -119,7 +119,7 @@ namespace Lucene.Net.Index
                 this.PercentDocs = percentDocs;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 return new TokenStreamComponents(new RepeatingTokenizer(reader, Val, Random,
PercentDocs, MaxTF));
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Search/FuzzyTermOnShortTermsTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/FuzzyTermOnShortTermsTest.cs b/src/Lucene.Net.Tests/core/Search/FuzzyTermOnShortTermsTest.cs
index 1b9fb84..b668aad 100644
--- a/src/Lucene.Net.Tests/core/Search/FuzzyTermOnShortTermsTest.cs
+++ b/src/Lucene.Net.Tests/core/Search/FuzzyTermOnShortTermsTest.cs
@@ -89,7 +89,7 @@ namespace Lucene.Net.Search
             {
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer tokenizer = new MockTokenizer(reader, MockTokenizer.SIMPLE, true);
                 return new TokenStreamComponents(tokenizer, tokenizer);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Search/Payloads/PayloadHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/Payloads/PayloadHelper.cs b/src/Lucene.Net.Tests/core/Search/Payloads/PayloadHelper.cs
index a88b90e..a65d8f2 100644
--- a/src/Lucene.Net.Tests/core/Search/Payloads/PayloadHelper.cs
+++ b/src/Lucene.Net.Tests/core/Search/Payloads/PayloadHelper.cs
@@ -63,7 +63,7 @@ namespace Lucene.Net.Search.Payloads
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer result = new MockTokenizer(reader, MockTokenizer.SIMPLE, true);
                 return new TokenStreamComponents(result, new PayloadFilter(OuterInstance,
result, fieldName));

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Search/Payloads/TestPayloadNearQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/Payloads/TestPayloadNearQuery.cs b/src/Lucene.Net.Tests/core/Search/Payloads/TestPayloadNearQuery.cs
index 9df0229..4138ed0 100644
--- a/src/Lucene.Net.Tests/core/Search/Payloads/TestPayloadNearQuery.cs
+++ b/src/Lucene.Net.Tests/core/Search/Payloads/TestPayloadNearQuery.cs
@@ -51,7 +51,7 @@ namespace Lucene.Net.Search.Payloads
 
         private class PayloadAnalyzer : Analyzer
         {
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer result = new MockTokenizer(reader, MockTokenizer.SIMPLE, true);
                 return new TokenStreamComponents(result, new PayloadFilter(result, fieldName));

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Search/Payloads/TestPayloadTermQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/Payloads/TestPayloadTermQuery.cs b/src/Lucene.Net.Tests/core/Search/Payloads/TestPayloadTermQuery.cs
index 2f0ced7..d2b3ca1 100644
--- a/src/Lucene.Net.Tests/core/Search/Payloads/TestPayloadTermQuery.cs
+++ b/src/Lucene.Net.Tests/core/Search/Payloads/TestPayloadTermQuery.cs
@@ -58,7 +58,7 @@ namespace Lucene.Net.Search.Payloads
             {
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer result = new MockTokenizer(reader, MockTokenizer.SIMPLE, true);
                 return new TokenStreamComponents(result, new PayloadFilter(result, fieldName));

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Search/Spans/TestBasics.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/Spans/TestBasics.cs b/src/Lucene.Net.Tests/core/Search/Spans/TestBasics.cs
index 0aef0b3..87cbbc2 100644
--- a/src/Lucene.Net.Tests/core/Search/Spans/TestBasics.cs
+++ b/src/Lucene.Net.Tests/core/Search/Spans/TestBasics.cs
@@ -118,7 +118,7 @@ namespace Lucene.Net.Search.Spans
             {
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer tokenizer = new MockTokenizer(reader, MockTokenizer.SIMPLE, true);
                 return new TokenStreamComponents(tokenizer, new SimplePayloadFilter(tokenizer));

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Search/Spans/TestPayloadSpans.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/Spans/TestPayloadSpans.cs b/src/Lucene.Net.Tests/core/Search/Spans/TestPayloadSpans.cs
index 45ce22a..c1cc02e 100644
--- a/src/Lucene.Net.Tests/core/Search/Spans/TestPayloadSpans.cs
+++ b/src/Lucene.Net.Tests/core/Search/Spans/TestPayloadSpans.cs
@@ -510,7 +510,7 @@ namespace Lucene.Net.Search.Spans
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer result = new MockTokenizer(reader, MockTokenizer.SIMPLE, true);
                 return new TokenStreamComponents(result, new PayloadFilter(OuterInstance,
result));
@@ -581,7 +581,7 @@ namespace Lucene.Net.Search.Spans
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer result = new MockTokenizer(reader, MockTokenizer.SIMPLE, true);
                 return new TokenStreamComponents(result, new PayloadFilter(OuterInstance,
result));

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Search/TestPhraseQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestPhraseQuery.cs b/src/Lucene.Net.Tests/core/Search/TestPhraseQuery.cs
index 2e1ac1d..de56994 100644
--- a/src/Lucene.Net.Tests/core/Search/TestPhraseQuery.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestPhraseQuery.cs
@@ -90,7 +90,7 @@ namespace Lucene.Net.Search
             {
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 return new TokenStreamComponents(new MockTokenizer(reader, MockTokenizer.WHITESPACE,
false));
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Search/TestPositionIncrement.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestPositionIncrement.cs b/src/Lucene.Net.Tests/core/Search/TestPositionIncrement.cs
index 83b0970..982c244 100644
--- a/src/Lucene.Net.Tests/core/Search/TestPositionIncrement.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestPositionIncrement.cs
@@ -173,7 +173,7 @@ namespace Lucene.Net.Search
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 return new TokenStreamComponents(new TokenizerAnonymousInnerClassHelper(this,
reader));
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Search/TestTermRangeQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestTermRangeQuery.cs b/src/Lucene.Net.Tests/core/Search/TestTermRangeQuery.cs
index e6541b1..54054e0 100644
--- a/src/Lucene.Net.Tests/core/Search/TestTermRangeQuery.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestTermRangeQuery.cs
@@ -259,7 +259,7 @@ namespace Lucene.Net.Search
                 }
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 return new TokenStreamComponents(new SingleCharTokenizer(reader));
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e4e81d0c/src/Lucene.Net.Tests/core/Util/TestQueryBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/TestQueryBuilder.cs b/src/Lucene.Net.Tests/core/Util/TestQueryBuilder.cs
index 0140fc0..1c6ee09 100644
--- a/src/Lucene.Net.Tests/core/Util/TestQueryBuilder.cs
+++ b/src/Lucene.Net.Tests/core/Util/TestQueryBuilder.cs
@@ -135,7 +135,7 @@ namespace Lucene.Net.Util
         /// adds synonym of "dog" for "dogs". </summary>
         internal class MockSynonymAnalyzer : Analyzer
         {
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 MockTokenizer tokenizer = new MockTokenizer(reader);
                 return new TokenStreamComponents(tokenizer, new MockSynonymFilter(tokenizer));
@@ -240,7 +240,7 @@ namespace Lucene.Net.Util
                 this.OuterInstance = outerInstance;
             }
 
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 return new TokenStreamComponents(new SimpleCJKTokenizer(reader));
             }
@@ -330,7 +330,7 @@ namespace Lucene.Net.Util
 
         internal class MockCJKSynonymAnalyzer : Analyzer
         {
-            protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
+            public override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
             {
                 Tokenizer tokenizer = new SimpleCJKTokenizer(reader);
                 return new TokenStreamComponents(tokenizer, new MockCJKSynonymFilter(tokenizer));


Mime
View raw message