You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by di...@apache.org on 2009/12/03 17:11:56 UTC
svn commit: r886836 - in
/incubator/lucene.net/trunk/C#/src/Lucene.Net/Search: ComplexExplanation.cs
MultiPhraseQuery.cs Spans/SpanWeight.cs TermQuery.cs
Author: digy
Date: Thu Dec 3 16:11:23 2009
New Revision: 886836
URL: http://svn.apache.org/viewvc?rev=886836&view=rev
Log:
LUCENENET-202 Compile warnings trying to build source code, svn revision 829945
Modified:
incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/ComplexExplanation.cs
incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MultiPhraseQuery.cs
incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Spans/SpanWeight.cs
incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/TermQuery.cs
Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/ComplexExplanation.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/ComplexExplanation.cs?rev=886836&r1=886835&r2=886836&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/ComplexExplanation.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/ComplexExplanation.cs Thu Dec 3 16:11:23 2009
@@ -26,7 +26,7 @@
[Serializable]
public class ComplexExplanation:Explanation
{
- private System.Boolean match;
+ private System.Boolean? match;
private bool isMatchSet = false;
public ComplexExplanation():base()
@@ -42,14 +42,14 @@
/// <summary> The match status of this explanation node.</summary>
/// <returns> May be null if match status is unknown
/// </returns>
- public virtual System.Boolean GetMatch()
+ public virtual System.Boolean? GetMatch()
{
return match;
}
/// <summary> Sets the match status assigned to this explanation node.</summary>
/// <param name="match">May be null if match status is unknown
/// </param>
- public virtual void SetMatch(System.Boolean match)
+ public virtual void SetMatch(System.Boolean? match)
{
this.match = match;
this.isMatchSet = true;
@@ -65,8 +65,8 @@
/// </seealso>
public override bool IsMatch()
{
- System.Boolean m = GetMatch();
- return (null != m?m:base.IsMatch());
+ System.Boolean? m = GetMatch();
+ return m ?? base.IsMatch();
}
protected internal override System.String GetSummary()
Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MultiPhraseQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/MultiPhraseQuery.cs?rev=886836&r1=886835&r2=886836&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MultiPhraseQuery.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/MultiPhraseQuery.cs Thu Dec 3 16:11:23 2009
@@ -279,7 +279,7 @@
fieldExpl.SetValue(tfExpl.GetValue() * idfExpl.GetValue() * fieldNormExpl.GetValue());
result.AddDetail(fieldExpl);
- System.Boolean tempAux = fieldExpl.GetMatch();
+ System.Boolean? tempAux = fieldExpl.GetMatch();
result.SetMatch(tempAux);
// combine them
Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Spans/SpanWeight.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/Spans/SpanWeight.cs?rev=886836&r1=886835&r2=886836&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Spans/SpanWeight.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Spans/SpanWeight.cs Thu Dec 3 16:11:23 2009
@@ -119,7 +119,7 @@
fieldExpl.SetValue(tfExpl.GetValue() * idfExpl.GetValue() * fieldNormExpl.GetValue());
result.AddDetail(fieldExpl);
- System.Boolean tempAux = fieldExpl.GetMatch();
+ System.Boolean? tempAux = fieldExpl.GetMatch();
result.SetMatch(tempAux);
// combine them
Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/TermQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/TermQuery.cs?rev=886836&r1=886835&r2=886836&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/TermQuery.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/TermQuery.cs Thu Dec 3 16:11:23 2009
@@ -146,7 +146,7 @@
fieldExpl.SetValue(tfExpl.GetValue() * expl.GetValue() * fieldNormExpl.GetValue());
result.AddDetail(fieldExpl);
- System.Boolean tempAux = fieldExpl.GetMatch();
+ System.Boolean? tempAux = fieldExpl.GetMatch();
result.SetMatch(tempAux);
// combine them