lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r677454 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/StopFilter.cs
Date Wed, 16 Jul 2008 22:42:32 GMT
Author: aroush
Date: Wed Jul 16 15:42:31 2008
New Revision: 677454

URL: http://svn.apache.org/viewvc?rev=677454&view=rev
Log:
LUCENENET-121: StopFilter  tries to access the i'th item of a hashtable as item[i] where i
is not a key.

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/StopFilter.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/StopFilter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Analysis/StopFilter.cs?rev=677454&r1=677453&r2=677454&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/StopFilter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/StopFilter.cs Wed Jul 16 15:42:31
2008
@@ -70,9 +70,9 @@
 			else
 			{
 				this.stopWords = new CharArraySet(stopWords.Count, ignoreCase);
-				for (int i = 0; i < stopWords.Count; i++)
+				foreach (System.String sw in stopWords.Values)
 				{
-					this.stopWords.Add(stopWords[i]);
+					this.stopWords.Add(sw);
 				}
 			}
 		}



Mime
View raw message