lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [17/27] lucenenet git commit: Lucene.Net.Core.Store.VerifyingLockFactory.Verify() changed parameter from sbyte to byte because it doesn't make any difference in this case.
Date Thu, 02 Mar 2017 01:11:00 GMT
Lucene.Net.Core.Store.VerifyingLockFactory.Verify() changed parameter from sbyte to byte because
it doesn't make any difference in this case.


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

Branch: refs/heads/api-work
Commit: a05dc7fe6412e14f2fc4e1dbc29dac87eaee9271
Parents: fc22adb
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Mar 2 00:22:27 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Mar 2 08:08:53 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Store/VerifyingLockFactory.cs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a05dc7fe/src/Lucene.Net.Core/Store/VerifyingLockFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Store/VerifyingLockFactory.cs b/src/Lucene.Net.Core/Store/VerifyingLockFactory.cs
index 9e40262..f6612ef 100644
--- a/src/Lucene.Net.Core/Store/VerifyingLockFactory.cs
+++ b/src/Lucene.Net.Core/Store/VerifyingLockFactory.cs
@@ -51,9 +51,9 @@ namespace Lucene.Net.Store
                 this.@lock = @lock;
             }
 
-            private void Verify(sbyte message) // LUCENENET TODO: sbyte unnecessary here
+            private void Verify(byte message)
             {
-                outerInstance.@out.WriteByte((byte)message);
+                outerInstance.@out.WriteByte(message);
                 outerInstance.@out.Flush();
                 int ret = outerInstance.@in.ReadByte();
                 if (ret < 0)
@@ -73,7 +73,7 @@ namespace Lucene.Net.Store
                     bool obtained = @lock.Obtain();
                     if (obtained)
                     {
-                        Verify((sbyte)1);
+                        Verify((byte)1);
                     }
                     return obtained;
                 }
@@ -96,7 +96,7 @@ namespace Lucene.Net.Store
                 {
                     if (IsLocked)
                     {
-                        Verify((sbyte)0);
+                        Verify((byte)0);
                         @lock.Release();
                     }
                 }


Mime
View raw message