You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2016/10/02 14:35:29 UTC
[11/50] [abbrv] lucenenet git commit: Added missing
StringBuilder.append extension missing overloads because char was being added
to the StringBuilder as long - this could be a problem with other data types
as well.
Added missing StringBuilder.append extension missing overloads because char was being added to the StringBuilder as long - this could be a problem with other data types as well.
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/42166eb6
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/42166eb6
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/42166eb6
Branch: refs/heads/master
Commit: 42166eb6e4cb64d07171444e3563722fafe6bdc3
Parents: 0f5cc74
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Thu Sep 15 23:08:58 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Oct 2 17:44:15 2016 +0700
----------------------------------------------------------------------
.../JavaCompatibility/SystemTypesHelpers.cs | 84 ++++++++++++++++++++
1 file changed, 84 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/42166eb6/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 b2f19c4..a801e35 100644
--- a/src/Lucene.Net.TestFramework/JavaCompatibility/SystemTypesHelpers.cs
+++ b/src/Lucene.Net.TestFramework/JavaCompatibility/SystemTypesHelpers.cs
@@ -60,18 +60,102 @@ namespace Lucene.Net
return obj1.Equals(obj2);
}
+ public static StringBuilder append(this StringBuilder sb, bool value)
+ {
+ sb.Append(value);
+ return sb;
+ }
+
+ public static StringBuilder append(this StringBuilder sb, byte value)
+ {
+ sb.Append(value);
+ return sb;
+ }
+
+ public static StringBuilder append(this StringBuilder sb, char value)
+ {
+ sb.Append(value);
+ return sb;
+ }
+
+ public static StringBuilder append(this StringBuilder sb, char[] value)
+ {
+ sb.Append(value);
+ return sb;
+ }
+
+ public static StringBuilder append(this StringBuilder sb, decimal value)
+ {
+ sb.Append(value);
+ return sb;
+ }
+
+ public static StringBuilder append(this StringBuilder sb, double value)
+ {
+ sb.Append(value);
+ return sb;
+ }
+
+ public static StringBuilder append(this StringBuilder sb, float value)
+ {
+ sb.Append(value);
+ return sb;
+ }
+
+ public static StringBuilder append(this StringBuilder sb, int value)
+ {
+ sb.Append(value);
+ return sb;
+ }
+
public static StringBuilder append(this StringBuilder sb, long value)
{
sb.Append(value);
return sb;
}
+ public static StringBuilder append(this StringBuilder sb, object value)
+ {
+ sb.Append(value);
+ return sb;
+ }
+
+ public static StringBuilder append(this StringBuilder sb, sbyte value)
+ {
+ sb.Append(value);
+ return sb;
+ }
+
+ public static StringBuilder append(this StringBuilder sb, short value)
+ {
+ sb.Append(value);
+ return sb;
+ }
+
public static StringBuilder append(this StringBuilder sb, string value)
{
sb.Append(value);
return sb;
}
+ public static StringBuilder append(this StringBuilder sb, uint value)
+ {
+ sb.Append(value);
+ return sb;
+ }
+
+ public static StringBuilder append(this StringBuilder sb, ulong value)
+ {
+ sb.Append(value);
+ return sb;
+ }
+
+ public static StringBuilder append(this StringBuilder sb, ushort value)
+ {
+ sb.Append(value);
+ return sb;
+ }
+
public static sbyte[] getBytes(this string str, string encoding)
{
return (sbyte[])(Array)Encoding.GetEncoding(encoding).GetBytes(str);