lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [10/18] lucenenet git commit: Fixed missing Reset() call that caused Queries.Function.ValueSources.TFValueSource.TestTF() to fail.
Date Sun, 21 Aug 2016 06:54:49 GMT
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/master
Commit: 11cf1b8789c3cb30d8ad0316a4859a875c2fdac0
Parents: 1727c1b
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Aug 21 09:57:05 2016 +0700
Committer: Shad Storhaug <shad@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?


Mime
View raw message