mirror of https://github.com/apache/lucene.git
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:
parent
007b8d6a82
commit
6104f180a1
|
@ -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
|
||||
//------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue