You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2016/08/23 23:18:21 UTC

[28/50] [abbrv] lucenenet git commit: Fixed missing Reset() call that caused Queries.Function.ValueSources.TFValueSource.TestTF() to fail.

Fixed missing Reset() call that caused Queries.Function.ValueSources.TFValueSource.TestTF() to fail.


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

Branch: refs/heads/analysis-work
Commit: 11cf1b8789c3cb30d8ad0316a4859a875c2fdac0
Parents: 1727c1b
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Aug 21 09:57:05 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Aug 21 09:57:05 2016 +0700

----------------------------------------------------------------------
 .../Function/ValueSources/TFValueSource.cs                   | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/11cf1b87/src/Lucene.Net.Queries/Function/ValueSources/TFValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/TFValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/TFValueSource.cs
index 4e8efb0..aff074b 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/TFValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/TFValueSource.cs
@@ -81,19 +81,13 @@ namespace Lucene.Net.Queries.Function.ValueSources
                 this.terms = terms;
                 this.similarity = similarity;
                 lastDocRequested = -1;
+                Reset();
             }
 
             private DocsEnum docs;
             private int atDoc;
             private int lastDocRequested;
 
-            //JAVA TO C# CONVERTER TODO TASK: Initialization blocks declared within anonymous inner classes are not converted:
-            //	  {
-            //		  reset();
-            //	  }
-
-            //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
-            //ORIGINAL LINE: public void reset() throws java.io.IOException
             public virtual void Reset()
             {
                 // no one should call us for deleted docs?