lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [16/47] lucenenet git commit: Fixed cloning behavior of Core.Store.DataInput to match Java Lucene.
Date Tue, 11 Oct 2016 18:35:01 GMT
Fixed cloning behavior of Core.Store.DataInput to match Java Lucene.


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

Branch: refs/heads/master
Commit: 731a4cbf5d2ead98e9efe16eccefe2ae8249674c
Parents: 92c3a07
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Oct 9 01:39:29 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Tue Oct 11 00:26:20 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Store/DataInput.cs  | 11 ++++++++++-
 src/Lucene.Net.Core/Store/IndexInput.cs | 11 +----------
 2 files changed, 11 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/731a4cbf/src/Lucene.Net.Core/Store/DataInput.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Store/DataInput.cs b/src/Lucene.Net.Core/Store/DataInput.cs
index 5280e7e..7691a0b 100644
--- a/src/Lucene.Net.Core/Store/DataInput.cs
+++ b/src/Lucene.Net.Core/Store/DataInput.cs
@@ -265,7 +265,16 @@ namespace Lucene.Net.Store
         /// </summary>
         public virtual object Clone()
         {
-            return (DataInput)base.MemberwiseClone();
+            DataInput clone = null;
+            try
+            {
+                clone = (DataInput)base.MemberwiseClone();
+            }
+            catch (Exception)
+            {
+            }
+
+            return clone;
         }
 
         /// <summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/731a4cbf/src/Lucene.Net.Core/Store/IndexInput.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Store/IndexInput.cs b/src/Lucene.Net.Core/Store/IndexInput.cs
index 1dea1ca..0f05136 100644
--- a/src/Lucene.Net.Core/Store/IndexInput.cs
+++ b/src/Lucene.Net.Core/Store/IndexInput.cs
@@ -85,16 +85,7 @@ namespace Lucene.Net.Store
         /// </summary>
         public override object Clone()
         {
-            IndexInput clone = null;
-            try
-            {
-                clone = (IndexInput)base.MemberwiseClone();
-            }
-            catch (System.Exception)
-            {
-            }
-
-            return clone;
+            return (IndexInput)base.Clone();
         }
     }
 }
\ No newline at end of file


Mime
View raw message