lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r911885 - in /lucene/lucene.net/trunk/C#/src/Lucene.Net: Analysis/CharArraySet.cs Index/Term.cs Search/NumericRangeQuery.cs SupportClass.cs
Date Fri, 19 Feb 2010 18:09:00 GMT
Author: digy
Date: Fri Feb 19 18:08:59 2010
New Revision: 911885

URL: http://svn.apache.org/viewvc?rev=911885&view=rev
Log:
LUCENENET-341 Fix "Compiler warnings to worry about"

Modified:
    lucene/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CharArraySet.cs
    lucene/lucene.net/trunk/C#/src/Lucene.Net/Index/Term.cs
    lucene/lucene.net/trunk/C#/src/Lucene.Net/Search/NumericRangeQuery.cs
    lucene/lucene.net/trunk/C#/src/Lucene.Net/SupportClass.cs

Modified: lucene/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CharArraySet.cs
URL: http://svn.apache.org/viewvc/lucene/lucene.net/trunk/C%23/src/Lucene.Net/Analysis/CharArraySet.cs?rev=911885&r1=911884&r2=911885&view=diff
==============================================================================
--- lucene/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CharArraySet.cs (original)
+++ lucene/lucene.net/trunk/C#/src/Lucene.Net/Analysis/CharArraySet.cs Fri Feb 19 18:08:59
2010
@@ -415,7 +415,7 @@
 				throw new System.NotSupportedException();
 			}
 			
-			public bool AddAll(System.Collections.ICollection coll)
+			public override bool AddAll(System.Collections.ICollection coll)
 			{
 				throw new System.NotSupportedException();
 			}
@@ -446,7 +446,7 @@
         }
 
         /// <summary>Removes all elements from the set </summary>
-        public virtual bool Clear()
+        public virtual new bool Clear()
         {
             throw new System.NotSupportedException();
         }

Modified: lucene/lucene.net/trunk/C#/src/Lucene.Net/Index/Term.cs
URL: http://svn.apache.org/viewvc/lucene/lucene.net/trunk/C%23/src/Lucene.Net/Index/Term.cs?rev=911885&r1=911884&r2=911885&view=diff
==============================================================================
--- lucene/lucene.net/trunk/C#/src/Lucene.Net/Index/Term.cs (original)
+++ lucene/lucene.net/trunk/C#/src/Lucene.Net/Index/Term.cs Fri Feb 19 18:08:59 2010
@@ -171,7 +171,7 @@
             info.AddValue("field", field);
         }
 
-        protected Term(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext
context)
+        private Term(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext
context)
         {
             text = (string)info.GetValue("text", typeof(string));
             field = StringHelper.Intern((string)info.GetValue("field", typeof(string)));

Modified: lucene/lucene.net/trunk/C#/src/Lucene.Net/Search/NumericRangeQuery.cs
URL: http://svn.apache.org/viewvc/lucene/lucene.net/trunk/C%23/src/Lucene.Net/Search/NumericRangeQuery.cs?rev=911885&r1=911884&r2=911885&view=diff
==============================================================================
--- lucene/lucene.net/trunk/C#/src/Lucene.Net/Search/NumericRangeQuery.cs (original)
+++ lucene/lucene.net/trunk/C#/src/Lucene.Net/Search/NumericRangeQuery.cs Fri Feb 19 18:08:59
2010
@@ -386,7 +386,7 @@
         /// </summary>
         /// <param name="info"></param>
         /// <param name="context"></param>
-        protected NumericRangeQuery(System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context)
+        private NumericRangeQuery(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext
context)
         {
             precisionStep   = (int)info.GetValue("precisionStep", typeof(int));
             valSize         = (int)info.GetValue("valSize", typeof(int));

Modified: lucene/lucene.net/trunk/C#/src/Lucene.Net/SupportClass.cs
URL: http://svn.apache.org/viewvc/lucene/lucene.net/trunk/C%23/src/Lucene.Net/SupportClass.cs?rev=911885&r1=911884&r2=911885&view=diff
==============================================================================
--- lucene/lucene.net/trunk/C#/src/Lucene.Net/SupportClass.cs (original)
+++ lucene/lucene.net/trunk/C#/src/Lucene.Net/SupportClass.cs Fri Feb 19 18:08:59 2010
@@ -408,6 +408,11 @@
             if (obj is ThreadClass) return this.threadField.Equals( ((ThreadClass)obj).threadField
 );
             return false;
         }
+
+        public override int GetHashCode()
+        {
+            return this.threadField.GetHashCode();
+        }
     }
 
     /// <summary>



Mime
View raw message