You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2016/01/18 15:12:16 UTC
[11/50] ignite git commit: wip
wip
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/829c5e08
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/829c5e08
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/829c5e08
Branch: refs/heads/ignite-2324
Commit: 829c5e08d62babbfdd205a78f12cd3ed49d42219
Parents: e3b46e2
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Wed Jan 13 17:52:54 2016 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Wed Jan 13 17:52:54 2016 +0300
----------------------------------------------------------------------
.../Apache.Ignite.Core/Impl/Binary/BinarySystemHandlers.cs | 8 ++++----
.../Impl/Binary/Structure/BinaryStructure.cs | 3 ++-
2 files changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/829c5e08/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/BinarySystemHandlers.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/BinarySystemHandlers.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/BinarySystemHandlers.cs
index 7596992..39f4945 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/BinarySystemHandlers.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/BinarySystemHandlers.cs
@@ -419,7 +419,7 @@ namespace Apache.Ignite.Core.Impl.Binary
{
ctx.Stream.WriteByte(BinaryUtils.TypeArrayByte);
- BinaryUtils.WriteByteArray((byte[])(Array)obj, ctx.Stream);
+ BinaryUtils.WriteByteArray((byte[]) obj, ctx.Stream);
}
/// <summary>
@@ -443,7 +443,7 @@ namespace Apache.Ignite.Core.Impl.Binary
{
ctx.Stream.WriteByte(BinaryUtils.TypeArrayShort);
- BinaryUtils.WriteShortArray((short[])(Array)obj, ctx.Stream);
+ BinaryUtils.WriteShortArray((short[]) obj, ctx.Stream);
}
/// <summary>
@@ -479,7 +479,7 @@ namespace Apache.Ignite.Core.Impl.Binary
{
ctx.Stream.WriteByte(BinaryUtils.TypeArrayInt);
- BinaryUtils.WriteIntArray((int[])(Array)obj, ctx.Stream);
+ BinaryUtils.WriteIntArray((int[]) obj, ctx.Stream);
}
/// <summary>
@@ -503,7 +503,7 @@ namespace Apache.Ignite.Core.Impl.Binary
{
ctx.Stream.WriteByte(BinaryUtils.TypeArrayLong);
- BinaryUtils.WriteLongArray((long[])(Array)obj, ctx.Stream);
+ BinaryUtils.WriteLongArray((long[]) obj, ctx.Stream);
}
/// <summary>
http://git-wip-us.apache.org/repos/asf/ignite/blob/829c5e08/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/Structure/BinaryStructure.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/Structure/BinaryStructure.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/Structure/BinaryStructure.cs
index 3c97877..92c841c 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/Structure/BinaryStructure.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/Structure/BinaryStructure.cs
@@ -86,7 +86,8 @@ namespace Apache.Ignite.Core.Impl.Binary.Structure
if (entry.IsExpected(fieldName, fieldType))
// Entry matches our expectations, return.
return entry.Id;
- else if (entry.IsJumpTable)
+
+ if (entry.IsJumpTable)
{
// Entry is a pointer to a jump table.
Debug.Assert(entry.Id < _jumps.Length);