This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new ce6d66c  IGNITE-12294 .NET: Suppress zero shift code inspection warning
ce6d66c is described below

commit ce6d66cfe4ff8b6e882784160b99701f3c1b42e3
Author: Pavel Tupitsyn <[email protected]>
AuthorDate: Wed Oct 16 11:29:51 2019 +0300

    IGNITE-12294 .NET: Suppress zero shift code inspection warning
---
 .../platforms/dotnet/Apache.Ignite.Core/Impl/Binary/BinaryUtils.cs    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/BinaryUtils.cs 
b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/BinaryUtils.cs
index 0d23949..445d421 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/BinaryUtils.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/BinaryUtils.cs
@@ -621,7 +621,9 @@ namespace Apache.Ignite.Core.Impl.Binary
                         if (((c2 & 0xC0) != 0x80) || ((c3 & 0xC0) != 0x80))
                             throw new BinaryObjectException("Malformed input 
around byte: " + (off - 1));
 
-                        res[charArrCnt++] = (char)(((c & 0x0F) << 12) |
+                        // ReSharper disable once 
ShiftExpressionRealShiftCountIsZero (reviewed - readability)
+                        res[charArrCnt++] = (char)(
+                            ((c & 0x0F) << 12) |
                             ((c2 & 0x3F) << 6) |
                             ((c3 & 0x3F) << 0));
 

Reply via email to