This is an automated email from the ASF dual-hosted git repository. nightowl888 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/lucenenet.git
commit 39f1ef38863e697fde521f7eea67e0d9261bbbf9 Author: Shad Storhaug <[email protected]> AuthorDate: Tue Jan 7 21:27:36 2020 +0700 Lucene.Net.Index.StandardDirectoryReader: Eliminated unnecessary O(n + n) operation and cast --- src/Lucene.Net/Index/StandardDirectoryReader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Lucene.Net/Index/StandardDirectoryReader.cs b/src/Lucene.Net/Index/StandardDirectoryReader.cs index 5e50470..f6454f9 100644 --- a/src/Lucene.Net/Index/StandardDirectoryReader.cs +++ b/src/Lucene.Net/Index/StandardDirectoryReader.cs @@ -169,7 +169,7 @@ namespace Lucene.Net.Index /// <summary> /// This constructor is only used for <see cref="DoOpenIfChanged(SegmentInfos)"/> </summary> - private static DirectoryReader Open(Directory directory, SegmentInfos infos, IList<AtomicReader> oldReaders, int termInfosIndexDivisor) + private static DirectoryReader Open(Directory directory, SegmentInfos infos, IList<IndexReader> oldReaders, int termInfosIndexDivisor) // LUCENENET: Changed from AtomicReader to IndexReader to eliminate casting from the 1 place this is called from { // we put the old SegmentReaders in a map, that allows us // to lookup a reader using its segment name @@ -424,7 +424,7 @@ namespace Lucene.Net.Index internal DirectoryReader DoOpenIfChanged(SegmentInfos infos) { - return StandardDirectoryReader.Open(m_directory, infos, GetSequentialSubReaders().OfType<AtomicReader>().ToList(), termInfosIndexDivisor); + return StandardDirectoryReader.Open(m_directory, infos, GetSequentialSubReaders(), termInfosIndexDivisor); } public override long Version
