lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [3/3] git commit: Proper singleton
Date Sun, 07 Sep 2014 00:30:07 GMT
Proper singleton


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

Branch: refs/heads/master
Commit: 2d8a9639d86b56badb011ca216bc0d722eb3526a
Parents: 77ecd48
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Sun Sep 7 03:27:09 2014 +0300
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Sun Sep 7 03:27:09 2014 +0300

----------------------------------------------------------------------
 src/Lucene.Net.Core/Util/BytesRef.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/2d8a9639/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 5a28e94..c8ffe36 100644
--- a/src/Lucene.Net.Core/Util/BytesRef.cs
+++ b/src/Lucene.Net.Core/Util/BytesRef.cs
@@ -300,8 +300,10 @@ namespace Lucene.Net.Util
 
         internal class UTF8SortedAsUnicodeComparator : IComparer<BytesRef>
         {
+            internal static UTF8SortedAsUnicodeComparator Instance = new UTF8SortedAsUnicodeComparator();
+
             // Only singleton
-            internal UTF8SortedAsUnicodeComparator()
+            private UTF8SortedAsUnicodeComparator()
             {
             }
 


Mime
View raw message