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/25 03:43:47 UTC

[03/50] [abbrv] lucenenet git commit: Lucene.Net.TestFramework.Analysis.MockTokenizer: used new keyword on State enum since a base class has a nested class with the same name. Added override keyword to SetReaderTestPoint().

Lucene.Net.TestFramework.Analysis.MockTokenizer: used new keyword on State enum since a base class has a nested class with the same name. Added override keyword to SetReaderTestPoint().


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

Branch: refs/heads/api-work
Commit: 7a9be364c2069bb7bce469f6f01b8c69675034be
Parents: d8d5c18
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Wed Jan 25 01:35:42 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Wed Jan 25 09:34:44 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.TestFramework/Analysis/MockTokenizer.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7a9be364/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 f2d47ab..8525eea 100644
--- a/src/Lucene.Net.TestFramework/Analysis/MockTokenizer.cs
+++ b/src/Lucene.Net.TestFramework/Analysis/MockTokenizer.cs
@@ -78,7 +78,7 @@ namespace Lucene.Net.Analysis
         // TODO: "register" with LuceneTestCase to ensure all streams are closed() ?
         // currently, we can only check that the lifecycle is correct if someone is reusing,
         // but not for "one-offs".
-        private enum State
+        new private enum State
         {
             SETREADER, // consumer set a reader input either via ctor or via reset(Reader)
             RESET, // consumer has called reset()
@@ -314,7 +314,7 @@ namespace Lucene.Net.Analysis
             StreamState = State.CLOSE;
         }
 
-        internal bool SetReaderTestPoint()
+        internal override bool SetReaderTestPoint()
         {
             Assert.True(!EnableChecks_Renamed || StreamState == State.CLOSE, "setReader() called in wrong state: " + StreamState);
             StreamState = State.SETREADER;