lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [Lucene.Net] svn commit: r1196174 - in /incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core: Search/Query.cs Search/TopDocs.cs Util/PriorityQueue.cs
Date Tue, 01 Nov 2011 18:06:02 GMT
Author: digy
Date: Tue Nov  1 18:06:02 2011
New Revision: 1196174

URL: http://svn.apache.org/viewvc?rev=1196174&view=rev
Log:
Some code cleanup

Modified:
    incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/Query.cs
    incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/TopDocs.cs
    incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Util/PriorityQueue.cs

Modified: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/Query.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/Query.cs?rev=1196174&r1=1196173&r2=1196174&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/Query.cs (original)
+++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/Query.cs Tue Nov  1 18:06:02
2011
@@ -133,7 +133,7 @@ namespace Lucene.Net.Search
 		/// method will be called and is not necessarily of the same type as
 		/// the other queries.
 		/// </summary>
-		public virtual Query Combine(Query[] queries)
+		public virtual Query Combine(params Query[] queries)
 		{
             Support.Set<Query> uniques = new Support.Set<Query>();
 			for (int i = 0; i < queries.Length; i++)

Modified: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/TopDocs.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/TopDocs.cs?rev=1196174&r1=1196173&r2=1196174&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/TopDocs.cs (original)
+++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/TopDocs.cs Tue Nov  1
18:06:02 2011
@@ -39,19 +39,19 @@ namespace Lucene.Net.Search
         public int TotalHits
         {
             get { return totalHits; }
-            set { totalHits = value; }
+            internal set { totalHits = value; }
         }
 
         public ScoreDoc[] ScoreDocs
         {
             get { return scoreDocs; }
-            set { scoreDocs = value; }
+            internal set { scoreDocs = value; }
         }
 
-        public float MaxScore
+        public virtual float MaxScore
         {
             get { return maxScore; }
-            set { maxScore = value; }
+            internal set { maxScore = value; }
         }
 
 

Modified: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Util/PriorityQueue.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Util/PriorityQueue.cs?rev=1196174&r1=1196173&r2=1196174&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Util/PriorityQueue.cs (original)
+++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Util/PriorityQueue.cs Tue Nov
 1 18:06:02 2011
@@ -28,7 +28,7 @@ namespace Lucene.Net.Util
 	/// length <code>maxSize+1</code>, in {@link #initialize}.
 	/// 
 	/// </summary>
-	public abstract class PriorityQueue<T>
+	public  abstract class PriorityQueue<T>
 	{
 		private int size;
 		private int maxSize;



Mime
View raw message