LUCENE-4197 SpatialArgs.toString() shouldn't be overloaded with a ctx – not needed for its purpose.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1358380 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Wayne Smiley 2012-07-06 19:49:57 +00:00
parent 007b8d6a82
commit 6104f180a1
1 changed files with 3 additions and 9 deletions

View File

@ -17,8 +17,6 @@ package org.apache.lucene.spatial.query;
* limitations under the License.
*/
import com.spatial4j.core.context.SpatialContext;
import com.spatial4j.core.context.simple.SimpleSpatialContext;
import com.spatial4j.core.exception.InvalidSpatialArgument;
import com.spatial4j.core.shape.Shape;
@ -55,10 +53,11 @@ public class SpatialArgs {
}
}
public String toString(SpatialContext context) {
@Override
public String toString() {
StringBuilder 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);
}
@ -70,11 +69,6 @@ public class SpatialArgs {
return str.toString();
}
@Override
public String toString() {
return toString(SimpleSpatialContext.GEO_KM);
}
//------------------------------------------------
// Getters & Setters
//------------------------------------------------