Symbol chars used instead of single length strings

This commit is contained in:
Bruce Bowyer-Smyth
2014-07-28 16:30:10 +10:00
parent 490895716c
commit 432d262dcd
6 changed files with 27 additions and 16 deletions
+4 -4
View File
@@ -60,14 +60,14 @@ namespace Newtonsoft.Json
{
case JsonContainerType.Object:
if (sb.Length > 0)
sb.Append(".");
sb.Append('.');
sb.Append(PropertyName);
break;
case JsonContainerType.Array:
case JsonContainerType.Constructor:
sb.Append("[");
sb.Append('[');
sb.Append(Position);
sb.Append("]");
sb.Append(']');
break;
}
}
@@ -96,7 +96,7 @@ namespace Newtonsoft.Json
{
message = message.Trim();
if (!message.EndsWith(".", StringComparison.Ordinal))
if (!message.EndsWith('.'))
message += ".";
message += " ";