lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [3/4] lucenenet git commit: Minor code cleanup
Date Wed, 08 Apr 2015 17:01:02 GMT
Minor code cleanup


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

Branch: refs/heads/master
Commit: 443636026b5a7ecd8cac3ac27362e30b3799d8a5
Parents: 626bb65
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Wed Apr 8 20:00:32 2015 +0300
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Wed Apr 8 20:00:32 2015 +0300

----------------------------------------------------------------------
 src/Lucene.Net.Core/Search/RegexpQuery.cs            | 6 +-----
 src/Lucene.Net.Tests/core/Search/TestTopDocsMerge.cs | 2 +-
 2 files changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/44363602/src/Lucene.Net.Core/Search/RegexpQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Search/RegexpQuery.cs b/src/Lucene.Net.Core/Search/RegexpQuery.cs
index 596fdfb..9a05226 100644
--- a/src/Lucene.Net.Core/Search/RegexpQuery.cs
+++ b/src/Lucene.Net.Core/Search/RegexpQuery.cs
@@ -51,14 +51,10 @@ namespace Lucene.Net.Search
         /// <summary>
         /// A provider that provides no named automata
         /// </summary>
-        private static AutomatonProvider defaultProvider = new AutomatonProviderAnonymousInnerClassHelper();
+        private static readonly AutomatonProvider defaultProvider = new AutomatonProviderAnonymousInnerClassHelper();
 
         private class AutomatonProviderAnonymousInnerClassHelper : AutomatonProvider
         {
-            public AutomatonProviderAnonymousInnerClassHelper()
-            {
-            }
-
             public Automaton GetAutomaton(string name)
             {
                 return null;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/44363602/src/Lucene.Net.Tests/core/Search/TestTopDocsMerge.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestTopDocsMerge.cs b/src/Lucene.Net.Tests/core/Search/TestTopDocsMerge.cs
index d16efae..3edac14 100644
--- a/src/Lucene.Net.Tests/core/Search/TestTopDocsMerge.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestTopDocsMerge.cs
@@ -45,7 +45,7 @@ namespace Lucene.Net.Search
     {
         private class ShardSearcher : IndexSearcher
         {
-            internal readonly IList<AtomicReaderContext> Ctx;
+            private readonly IList<AtomicReaderContext> Ctx;
 
             public ShardSearcher(AtomicReaderContext ctx, IndexReaderContext parent)
                 : base(parent)


Mime
View raw message