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 2011/03/17 18:57:37 UTC
[Lucene.Net] svn commit: r1082613 -
/incubator/lucene.net/trunk/C#/src/Test/Store/MockRAMDirectory.cs
Author: digy
Date: Thu Mar 17 17:57:37 2011
New Revision: 1082613
URL: http://svn.apache.org/viewvc?rev=1082613&view=rev
Log:
[LUCENENET-399] againg "override" + type cast exceptions in TestCrash
Modified:
incubator/lucene.net/trunk/C#/src/Test/Store/MockRAMDirectory.cs
Modified: incubator/lucene.net/trunk/C#/src/Test/Store/MockRAMDirectory.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Store/MockRAMDirectory.cs?rev=1082613&r1=1082612&r2=1082613&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Store/MockRAMDirectory.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Store/MockRAMDirectory.cs Thu Mar 17 17:57:37 2011
@@ -98,7 +98,7 @@ namespace Lucene.Net.Store
preventDoubleWrite = value;
}
- public void Sync(String name)
+ public override void Sync(String name)
{
lock (this)
{
@@ -124,7 +124,8 @@ namespace Lucene.Net.Store
int count = 0;
while (it.MoveNext())
{
- String name = (String)it.Current;
+
+ string name = (string)((System.Collections.DictionaryEntry)it.Current).Key;
RAMFile file = (RAMFile)fileMap[name];
if (count % 3 == 0)
{