lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r833685 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CharTokenizer.cs
Date Sat, 07 Nov 2009 14:32:57 GMT
Author: aroush
Date: Sat Nov  7 14:32:57 2009
New Revision: 833685

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

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

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CharTokenizer.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Analysis/CharTokenizer.cs?rev=833685&r1=833684&r2=833685&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CharTokenizer.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CharTokenizer.cs Sat Nov  7 14:32:57
2009
@@ -82,7 +82,7 @@
 				{
 					offset += dataLen;
 					dataLen = input.Read((System.Char[]) ioBuffer, 0, ioBuffer.Length);
-					if (dataLen == 0)
+					if (dataLen == - 1)
 					{
 						dataLen = 0; // so next offset += dataLen won't decrement offset
 						if (length > 0)



Mime
View raw message