lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject lucenenet git commit: make sure base is not appended as char
Date Mon, 23 Feb 2015 07:15:25 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master 26115849d -> 158174679


make sure base is not appended as char


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/15817467
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/15817467
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/15817467

Branch: refs/heads/master
Commit: 1581746794362424ec20bf1559abe793fa646c9b
Parents: 2611584
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sun Feb 22 11:36:05 2015 -0500
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sun Feb 22 11:36:05 2015 -0500

----------------------------------------------------------------------
 src/Lucene.Net.Tests/core/Index/TestIndexWriterExceptions.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/15817467/src/Lucene.Net.Tests/core/Index/TestIndexWriterExceptions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestIndexWriterExceptions.cs b/src/Lucene.Net.Tests/core/Index/TestIndexWriterExceptions.cs
index aa8125e..51eb668 100644
--- a/src/Lucene.Net.Tests/core/Index/TestIndexWriterExceptions.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestIndexWriterExceptions.cs
@@ -2169,7 +2169,7 @@ namespace Lucene.Net.Index
                 for (int i = 0; i < numDocs; i++)
                 {
                     Document doc = new Document();
-                    doc.Add(new StringField("id", "" + docBase + i, Field.Store.NO));
+                    doc.Add(new StringField("id", (docBase + i).ToString(), Field.Store.NO));
                     if (DefaultCodecSupportsDocValues())
                     {
                         doc.Add(new NumericDocValuesField("f", 1L));


Mime
View raw message