lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Aroush" <geo...@aroush.net>
Subject RE: svn commit: r833877 - in /incubator/lucene.net/trunk/C#/src: Lucene.Net/Document/CompressionTools.cs Lucene.Net/Index/DirectoryReader.cs Lucene.Net/Index/NormsWriter.cs Test/Util/LocalizedTestCase.cs
Date Sun, 08 Nov 2009 14:05:03 GMT
Thanks DIGY!

I removed the keyword "abstract" from the class "LocalizedTestCase" to get the test to run.

-- George

-----Original Message-----
From: digy@apache.org [mailto:digy@apache.org] 
Sent: Sunday, November 08, 2009 8:51 AM
To: lucene-net-commits@incubator.apache.org
Subject: svn commit: r833877 - in /incubator/lucene.net/trunk/C#/src: Lucene.Net/Document/CompressionTools.cs
Lucene.Net/Index/DirectoryReader.cs Lucene.Net/Index/NormsWriter.cs Test/Util/LocalizedTestCase.cs

Author: digy
Date: Sun Nov  8 13:50:52 2009
New Revision: 833877

URL: http://svn.apache.org/viewvc?rev=833877&view=rev
Log:
LUCENENET-207 (2.9.0)

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/CompressionTools.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/DirectoryReader.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/NormsWriter.cs
    incubator/lucene.net/trunk/C#/src/Test/Util/LocalizedTestCase.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/CompressionTools.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Document/CompressionTools.cs?rev=833877&r1=833876&r2=833877&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/CompressionTools.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Document/CompressionTools.cs Sun Nov  8 13:50:52
2009
@@ -72,8 +72,6 @@
 			}
 			finally
 			{
-				//compressor.End();   // {{Aroush-2.9}} should this be compressor.Finish()?
-                System.Diagnostics.Debug.Fail("Port issue:", "What's the equivalent to 'java.util.zip.Inflater.end()'?");
 			}
 			
 			return bos.ToArray();
@@ -132,8 +130,6 @@
 			}
 			finally
 			{
-				// decompressor.End();     // {{Aroush-2.9}} Do we need this?
-                System.Diagnostics.Debug.Fail("Port issue:", "What's the equivalent to 'java.util.zip.Inflater.end()'?");
 			}
 			
 			return bos.ToArray();

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/DirectoryReader.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/DirectoryReader.cs?rev=833877&r1=833876&r2=833877&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/DirectoryReader.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/DirectoryReader.cs Sun Nov  8 13:50:52
2009
@@ -914,7 +914,7 @@
 					System.Collections.IEnumerator it = segmentInfos.Files(directory, false).GetEnumerator();
 					while (it.MoveNext())
 					{
-						System.String fileName = (System.String) it.Current;
+						System.String fileName = (string)((System.Collections.DictionaryEntry) it.Current).Value;
 						if (!synced.Contains(fileName))
 						{
 							System.Diagnostics.Debug.Assert(directory.FileExists(fileName));

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/NormsWriter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/NormsWriter.cs?rev=833877&r1=833876&r2=833877&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/NormsWriter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/NormsWriter.cs Sun Nov  8 13:50:52
2009
@@ -98,10 +98,10 @@
 					}
 				}
 
+                System.Collections.Hashtable fieldsHT = (System.Collections.Hashtable)fields;
                 for (int i = 0; i < fieldsToRemove.Count; i++)
                 {
-                    // fields.Remove(fieldsToRemove[i]);    // {{Aroush-2.9}}
-                    System.Diagnostics.Debug.Fail("Port issue:", "workout the fields.Remove()
call"); // {{Aroush-2.9}}
+                    fieldsHT.Remove(fieldsToRemove[i]);    
                 }
 			}
 			

Modified: incubator/lucene.net/trunk/C#/src/Test/Util/LocalizedTestCase.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Util/LocalizedTestCase.cs?rev=833877&r1=833876&r2=833877&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Util/LocalizedTestCase.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Util/LocalizedTestCase.cs Sun Nov  8 13:50:52 2009
@@ -38,7 +38,7 @@
 		private System.Globalization.CultureInfo defaultLocale = System.Threading.Thread.CurrentThread.CurrentCulture;
 		
 		/// <summary> The locale being used as the system default Locale</summary>
-		private System.Globalization.CultureInfo locale;
+        private System.Globalization.CultureInfo locale = System.Globalization.CultureInfo.CurrentCulture;
 		
 		/// <summary> An optional limited set of testcases that will run under different
Locales.</summary>
 		private System.Collections.Hashtable testWithDifferentLocales;



Mime
View raw message