You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2017/10/12 11:51:13 UTC
[35/50] [abbrv] lucene-solr:jira/solr-11285: LUCENE-7951: add back
Geo3dShape.toString
LUCENE-7951: add back Geo3dShape.toString
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/0673c57e
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/0673c57e
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/0673c57e
Branch: refs/heads/jira/solr-11285
Commit: 0673c57ecf42a43cda9789cc9a649fd26e311770
Parents: 2f6039f
Author: David Smiley <ds...@apache.org>
Authored: Mon Oct 9 22:24:06 2017 -0400
Committer: David Smiley <ds...@apache.org>
Committed: Mon Oct 9 22:24:06 2017 -0400
----------------------------------------------------------------------
.../java/org/apache/lucene/spatial/spatial4j/Geo3dShape.java | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/0673c57e/lucene/spatial-extras/src/java/org/apache/lucene/spatial/spatial4j/Geo3dShape.java
----------------------------------------------------------------------
diff --git a/lucene/spatial-extras/src/java/org/apache/lucene/spatial/spatial4j/Geo3dShape.java b/lucene/spatial-extras/src/java/org/apache/lucene/spatial/spatial4j/Geo3dShape.java
index bbe1f3a..eedf7d6 100644
--- a/lucene/spatial-extras/src/java/org/apache/lucene/spatial/spatial4j/Geo3dShape.java
+++ b/lucene/spatial-extras/src/java/org/apache/lucene/spatial/spatial4j/Geo3dShape.java
@@ -159,6 +159,11 @@ public class Geo3dShape<T extends GeoAreaShape> implements Shape {
}
@Override
+ public String toString() {
+ return "Geo3D:" + shape.toString();
+ } // note: the shape usually prints its planet model
+
+ @Override
public boolean equals(Object o) {
if (!(o instanceof Geo3dShape<?>))
return false;