You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by di...@apache.org on 2009/11/16 20:16:46 UTC

svn commit: r880914 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentMerger.cs

Author: digy
Date: Mon Nov 16 19:16:46 2009
New Revision: 880914

URL: http://svn.apache.org/viewvc?rev=880914&view=rev
Log:
LUCENENET-254 TestIndexWriter.TestAddIndexOnDiskFull

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentMerger.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentMerger.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/SegmentMerger.cs?rev=880914&r1=880913&r2=880914&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentMerger.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentMerger.cs Mon Nov 16 19:16:46 2009
@@ -307,12 +307,10 @@
 
         private void AddIndexed(IndexReader reader, FieldInfos fInfos, System.Collections.Generic.ICollection<string> names, bool storeTermVectors, bool storePositionWithTermVector, bool storeOffsetWithTermVector, bool storePayloads, bool omitTFAndPositions)
 		{
-			System.Collections.IEnumerator i = names.GetEnumerator();
+			System.Collections.Generic.IEnumerator<string> i = names.GetEnumerator();
 			while (i.MoveNext())
 			{
-                //There are too much indirections here. After all tests pass, some cleanup may be needed. {{DIGY}}
-                System.Collections.DictionaryEntry tmp = (System.Collections.DictionaryEntry)((System.Collections.DictionaryEntry)i.Current).Key;
-				System.String field = (System.String) tmp.Key;
+                System.String field = i.Current;
 				fInfos.Add(field, true, storeTermVectors, storePositionWithTermVector, storeOffsetWithTermVector, !reader.HasNorms(field), storePayloads, omitTFAndPositions);
 			}
 		}