You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2016/10/23 13:02:21 UTC

[35/50] [abbrv] lucenenet git commit: Removed unnecessary array declaration in Core.Util.FieldCacheSanityChecker.CheckSubreaders() - in .NET all that will do is take up more RAM for no reason.

Removed unnecessary array declaration in Core.Util.FieldCacheSanityChecker.CheckSubreaders() - in .NET all that will do is take up more RAM for no reason.


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

Branch: refs/heads/master
Commit: 6a2d485509a88c942bbe5a42f98cfb156775bc5a
Parents: 3979bbf
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Fri Oct 21 01:59:32 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Oct 23 19:36:45 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Util/FieldCacheSanityChecker.cs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6a2d4855/src/Lucene.Net.Core/Util/FieldCacheSanityChecker.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/FieldCacheSanityChecker.cs b/src/Lucene.Net.Core/Util/FieldCacheSanityChecker.cs
index 8d7b293..7b33841 100644
--- a/src/Lucene.Net.Core/Util/FieldCacheSanityChecker.cs
+++ b/src/Lucene.Net.Core/Util/FieldCacheSanityChecker.cs
@@ -266,8 +266,7 @@ namespace Lucene.Net.Util
                     }
                 }
 
-                FieldCache.CacheEntry[] badness = new FieldCache.CacheEntry[badEntries.Count];
-                badness = badEntries.ToArray();//LUCENE TO-DO had param of badness first
+                FieldCache.CacheEntry[] badness = badEntries.ToArray();
 
                 insanity.Add(new Insanity(InsanityType.SUBREADER, "Found caches for descendants of " + parent.ToString(), badness));
             }