lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [2/4] lucenenet git commit: make sure offsetGap is nullable int
Date Mon, 04 May 2015 08:13:30 GMT
make sure offsetGap is nullable int


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

Branch: refs/heads/master
Commit: 9f5fa011ca5a8ef58a84c50b43d639751120a136
Parents: df753f9
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Sun May 3 17:59:54 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Sun May 3 17:59:54 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.TestFramework/Analysis/MockAnalyzer.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9f5fa011/src/Lucene.Net.TestFramework/Analysis/MockAnalyzer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Analysis/MockAnalyzer.cs b/src/Lucene.Net.TestFramework/Analysis/MockAnalyzer.cs
index 9a1b883..f3940dd 100644
--- a/src/Lucene.Net.TestFramework/Analysis/MockAnalyzer.cs
+++ b/src/Lucene.Net.TestFramework/Analysis/MockAnalyzer.cs
@@ -46,7 +46,7 @@ namespace Lucene.Net.Analysis
         private readonly bool LowerCase;
         private readonly CharacterRunAutomaton Filter;
         private int PositionIncrementGap_Renamed;
-        private int OffsetGap_Renamed;
+        private int? OffsetGap_Renamed;
         private readonly Random Random;
         private IDictionary<string, int?> PreviousMappings = new Dictionary<string,
int?>();
         private bool EnableChecks_Renamed = true;
@@ -181,7 +181,7 @@ namespace Lucene.Net.Analysis
         /// <param name="fieldName"> Currently not used, the same offset gap is returned
for each field. </param>
         public override int GetOffsetGap(string fieldName)
         {
-            return OffsetGap_Renamed == null ? base.GetOffsetGap(fieldName) : OffsetGap_Renamed;
+            return OffsetGap_Renamed == null ? base.GetOffsetGap(fieldName) : OffsetGap_Renamed.Value;
         }
 
         /// <summary>


Mime
View raw message