lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject svn commit: r1375249 - /incubator/lucene.net/trunk/src/contrib/Spatial/Queries/SpatialArgs.cs
Date Mon, 20 Aug 2012 21:47:19 GMT
Author: synhershko
Date: Mon Aug 20 21:47:19 2012
New Revision: 1375249

URL: http://svn.apache.org/viewvc?rev=1375249&view=rev
Log:
LUCENE-4197 SpatialArgs.toString() shouldn't be overloaded with a ctx – not needed for its
purpose.

Modified:
    incubator/lucene.net/trunk/src/contrib/Spatial/Queries/SpatialArgs.cs

Modified: incubator/lucene.net/trunk/src/contrib/Spatial/Queries/SpatialArgs.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Spatial/Queries/SpatialArgs.cs?rev=1375249&r1=1375248&r2=1375249&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/Spatial/Queries/SpatialArgs.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/Spatial/Queries/SpatialArgs.cs Mon Aug 20 21:47:19
2012
@@ -69,11 +69,11 @@ namespace Lucene.Net.Spatial.Queries
 			}
 		}
 
-		public String ToString(SpatialContext context)
+		public override String ToString()
 		{
 			var str = new StringBuilder();
 			str.Append(Operation.GetName()).Append('(');
-			str.Append(context.ToString(shape));
+			str.Append(shape.ToString());
 			if (Min != null)
 			{
 				str.Append(" min=").Append(Min);
@@ -87,11 +87,6 @@ namespace Lucene.Net.Spatial.Queries
 			return str.ToString();
 		}
 
-		public override String ToString()
-		{
-			return ToString(SpatialContext.GEO_KM);
-		}
-
 		//------------------------------------------------
 		// Getters & Setters
 		//------------------------------------------------



Mime
View raw message