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: r1165628 - /incubator/lucene.net/trunk/src/core/Analysis/CharArraySet.cs
Date Tue, 06 Sep 2011 12:08:27 GMT
Author: digy
Date: Tue Sep  6 12:08:27 2011
New Revision: 1165628

URL: http://svn.apache.org/viewvc?rev=1165628&view=rev
Log:
[LUCENENET-414] The definition of CharArraySet is dangerously confusing and leads to bugs
when used.

Modified:
    incubator/lucene.net/trunk/src/core/Analysis/CharArraySet.cs

Modified: incubator/lucene.net/trunk/src/core/Analysis/CharArraySet.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/Analysis/CharArraySet.cs?rev=1165628&r1=1165627&r2=1165628&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/core/Analysis/CharArraySet.cs (original)
+++ incubator/lucene.net/trunk/src/core/Analysis/CharArraySet.cs Tue Sep  6 12:08:27 2011
@@ -280,7 +280,13 @@ namespace Lucene.Net.Analysis
 			}
 			return Contains(o.ToString());
 		}
-		
+
+        //LUCENENET-414 (https://issues.apache.org/jira/browse/LUCENENET-414)
+        public virtual bool Add(object key, object value)
+        {
+            return Add(key);
+        }
+
 		public virtual bool Add(System.Object o)
 		{
 			if (o is char[])



Mime
View raw message