lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r833824 - in /incubator/lucene.net/trunk/C#/src: Lucene.Net/Analysis/StopFilter.cs Test/Analysis/TestStopFilter.cs
Date Sun, 08 Nov 2009 04:57:47 GMT
Author: aroush
Date: Sun Nov  8 04:57:47 2009
New Revision: 833824

URL: http://svn.apache.org/viewvc?rev=833824&view=rev
Log:
Fixed JUnit test-cases for: TestStopFilter.cs

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/StopFilter.cs
    incubator/lucene.net/trunk/C#/src/Test/Analysis/TestStopFilter.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=833824&r1=833823&r2=833824&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 Sun Nov  8 04:57:47
2009
@@ -215,7 +215,7 @@
 		public static System.Collections.Hashtable MakeStopSet(System.String[] stopWords, bool
ignoreCase)
 		{
 			CharArraySet stopSet = new CharArraySet(stopWords.Length, ignoreCase);
-			stopSet.Add(new System.Collections.ArrayList(stopWords));
+			stopSet.AddAll(new System.Collections.ArrayList(stopWords));
 			return stopSet;
 		}
 		
@@ -229,7 +229,7 @@
 		public static System.Collections.Hashtable MakeStopSet(System.Collections.IList stopWords,
bool ignoreCase)
 		{
 			CharArraySet stopSet = new CharArraySet(stopWords.Count, ignoreCase);
-			stopSet.Add(stopWords);
+			stopSet.AddAll(stopWords);
 			return stopSet;
 		}
 		

Modified: incubator/lucene.net/trunk/C#/src/Test/Analysis/TestStopFilter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Analysis/TestStopFilter.cs?rev=833824&r1=833823&r2=833824&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Analysis/TestStopFilter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Analysis/TestStopFilter.cs Sun Nov  8 04:57:47
2009
@@ -81,7 +81,7 @@
 		public virtual void  TestStopPositons()
 		{
 			System.Text.StringBuilder sb = new System.Text.StringBuilder();
-			System.Collections.ArrayList a = new System.Collections.ArrayList();
+			System.Collections.Generic.List<string> a = new System.Collections.Generic.List<string>();
 			for (int i = 0; i < 20; i++)
 			{
 				System.String w = English.IntToEnglish(i).Trim();
@@ -103,8 +103,8 @@
 			stpf = new StopFilter(false, new WhitespaceTokenizer(reader), stopSet);
 			DoTestStopPositons(stpf, false);
 			// with increments, concatenating two stop filters
-			System.Collections.ArrayList a0 = new System.Collections.ArrayList();
-			System.Collections.ArrayList a1 = new System.Collections.ArrayList();
+			System.Collections.Generic.List<System.String> a0 = new System.Collections.Generic.List<System.String>();
+			System.Collections.Generic.List<System.String> a1 = new System.Collections.Generic.List<System.String>();
 			for (int i = 0; i < a.Count; i++)
 			{
 				if (i % 2 == 0)



Mime
View raw message