lucenenet-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=833689&view=rev
Log:
Take 2: 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=833689&r1=833688&r2=833689&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:54:28
2009
@@ -82,7 +82,7 @@
 				{
 					offset += dataLen;
 					dataLen = input.Read((System.Char[]) ioBuffer, 0, ioBuffer.Length);
-					if (dataLen == - 1)
+					if (dataLen <= 0)
 					{
 						dataLen = 0; // so next offset += dataLen won't decrement offset
 						if (length > 0)



Mime
View raw message