lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [2/5] lucenenet git commit: Lucene.Net.Misc.Index.Sorter.SortingMergePolicy: Added ExceptionToNullableConvention to FindMerges method.
Date Sat, 11 Mar 2017 06:03:57 GMT
Lucene.Net.Misc.Index.Sorter.SortingMergePolicy: Added ExceptionToNullableConvention to FindMerges
method.


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

Branch: refs/heads/api-work
Commit: 7c938beffd8506006c85e63f847107d3cd7dd676
Parents: 12c4d91
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Fri Mar 10 23:03:20 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sat Mar 11 13:03:31 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Misc/Index/Sorter/SortingMergePolicy.cs | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7c938bef/src/Lucene.Net.Misc/Index/Sorter/SortingMergePolicy.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Misc/Index/Sorter/SortingMergePolicy.cs b/src/Lucene.Net.Misc/Index/Sorter/SortingMergePolicy.cs
index e46647b..a70a5f1 100644
--- a/src/Lucene.Net.Misc/Index/Sorter/SortingMergePolicy.cs
+++ b/src/Lucene.Net.Misc/Index/Sorter/SortingMergePolicy.cs
@@ -1,5 +1,6 @@
 ´╗┐using Lucene.Net.Search;
 using Lucene.Net.Store;
+using Lucene.Net.Support;
 using Lucene.Net.Util;
 using Lucene.Net.Util.Packed;
 using System;
@@ -234,6 +235,7 @@ namespace Lucene.Net.Index.Sorter
             this.sort = sort;
         }
 
+        [ExceptionToNullableEnumConvention]
         public override MergeSpecification FindMerges(MergeTrigger? mergeTrigger, SegmentInfos
segmentInfos)
         {
             return SortedMergeSpecification(@in.FindMerges(mergeTrigger, segmentInfos));


Mime
View raw message