lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject git commit: Fixing singleton + cleanup
Date Mon, 08 Sep 2014 22:57:46 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master 2d8a9639d -> 80101605c


Fixing singleton + cleanup

Closes #17


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

Branch: refs/heads/master
Commit: 80101605c4e3ebd06f8a077db4888bccdca88e86
Parents: 2d8a963
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Tue Sep 9 01:56:50 2014 +0300
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Tue Sep 9 01:56:50 2014 +0300

----------------------------------------------------------------------
 src/Lucene.Net.Core/Util/BytesRef.cs | 2 +-
 src/Lucene.Net.Core/Util/IOUtils.cs  | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/80101605/src/Lucene.Net.Core/Util/BytesRef.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/BytesRef.cs b/src/Lucene.Net.Core/Util/BytesRef.cs
index c8ffe36..54761e9 100644
--- a/src/Lucene.Net.Core/Util/BytesRef.cs
+++ b/src/Lucene.Net.Core/Util/BytesRef.cs
@@ -288,7 +288,7 @@ namespace Lucene.Net.Util
             return Utf8SortedAsUnicodeSortOrder.Compare(this, br);
         }
 
-        private static readonly IComparer<BytesRef> Utf8SortedAsUnicodeSortOrder =
new UTF8SortedAsUnicodeComparator();
+        private static readonly IComparer<BytesRef> Utf8SortedAsUnicodeSortOrder =
UTF8SortedAsUnicodeComparator.Instance;
 
         public static IComparer<BytesRef> UTF8SortedAsUnicodeComparer
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/80101605/src/Lucene.Net.Core/Util/IOUtils.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/IOUtils.cs b/src/Lucene.Net.Core/Util/IOUtils.cs
index 07373c4..9f1d1fb 100644
--- a/src/Lucene.Net.Core/Util/IOUtils.cs
+++ b/src/Lucene.Net.Core/Util/IOUtils.cs
@@ -213,13 +213,13 @@ namespace Lucene.Net.Util
         ///          objects to call <tt>close()</tt> on </param>
         public static void CloseWhileHandlingException(params IDisposable[] objects)
         {
-            foreach (IDisposable @object in objects)
+            foreach (IDisposable o in objects)
             {
                 try
                 {
-                    if (@object != null)
+                    if (o != null)
                     {
-                        @object.Dispose();
+                        o.Dispose();
                     }
                 }
                 catch (Exception)


Mime
View raw message