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:44:08 UTC
[24/50] [abbrv] lucenenet git commit:
Lucene.Net.Tests.Index.TestDirectoryReaderReopen.KeepAllCommits: made
non-generic (as it was originally) to prevent collisions with the generic
closing type of its methods.
Lucene.Net.Tests.Index.TestDirectoryReaderReopen.KeepAllCommits: made non-generic (as it was originally) to prevent collisions with the generic closing type of its methods.
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/5f25653f
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/5f25653f
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/5f25653f
Branch: refs/heads/api-work
Commit: 5f25653fd934fab7e35b16c93e08a42511423449
Parents: c0c42f9
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Wed Jan 25 05:49:40 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Wed Jan 25 09:34:47 2017 +0700
----------------------------------------------------------------------
src/Lucene.Net.Tests/core/Index/TestDirectoryReaderReopen.cs | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5f25653f/src/Lucene.Net.Tests/core/Index/TestDirectoryReaderReopen.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestDirectoryReaderReopen.cs b/src/Lucene.Net.Tests/core/Index/TestDirectoryReaderReopen.cs
index 2e1c4ef..bb52f58 100644
--- a/src/Lucene.Net.Tests/core/Index/TestDirectoryReaderReopen.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestDirectoryReaderReopen.cs
@@ -684,8 +684,7 @@ namespace Lucene.Net.Index
protected internal abstract void ModifyIndex(int i);
}
- internal class KeepAllCommits<T> : IndexDeletionPolicy
- where T : IndexCommit
+ internal class KeepAllCommits : IndexDeletionPolicy
{
public override void OnInit<T>(IList<T> commits)
{
@@ -700,7 +699,7 @@ namespace Lucene.Net.Index
public virtual void TestReopenOnCommit()
{
Directory dir = NewDirectory();
- IndexWriter writer = new IndexWriter(dir, NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random())).SetIndexDeletionPolicy(new KeepAllCommits<IndexCommit>()).SetMaxBufferedDocs(-1).SetMergePolicy(NewLogMergePolicy(10)));
+ IndexWriter writer = new IndexWriter(dir, NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random())).SetIndexDeletionPolicy(new KeepAllCommits()).SetMaxBufferedDocs(-1).SetMergePolicy(NewLogMergePolicy(10)));
for (int i = 0; i < 4; i++)
{
Document doc = new Document();