lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r880914 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentMerger.cs
Date Mon, 16 Nov 2009 19:16:46 GMT
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);
 			}
 		}



Mime
View raw message