lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [45/50] [abbrv] lucenenet git commit: Fixed TestFramework toString() extension method so it will print the word "null" when it encounters a null value, similar to Java.
Date Sun, 02 Oct 2016 14:36:03 GMT
Fixed TestFramework toString() extension method so it will print the word "null" when it encounters
a null value, similar to Java.


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

Branch: refs/heads/master
Commit: bd00a5f92872dc25a3b6bdb95b45a4f1c0920e5a
Parents: da2ae4c
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Mon Sep 19 15:14:28 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Oct 2 17:45:08 2016 +0700

----------------------------------------------------------------------
 .../JavaCompatibility/SystemTypesHelpers.cs                        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/bd00a5f9/src/Lucene.Net.TestFramework/JavaCompatibility/SystemTypesHelpers.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/JavaCompatibility/SystemTypesHelpers.cs b/src/Lucene.Net.TestFramework/JavaCompatibility/SystemTypesHelpers.cs
index a801e35..04abb39 100644
--- a/src/Lucene.Net.TestFramework/JavaCompatibility/SystemTypesHelpers.cs
+++ b/src/Lucene.Net.TestFramework/JavaCompatibility/SystemTypesHelpers.cs
@@ -47,7 +47,7 @@ namespace Lucene.Net
                     {
                         sb.Append(", ");
                     }
-                    sb.Append(item.ToString());
+                    sb.Append(item != null ? item.ToString() : "null");
                 }
                 sb.Append(isArray ? "}" : "]");
                 return sb.ToString();


Mime
View raw message