lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsmi...@apache.org
Subject lucene-solr:branch_7_1: LUCENE-7951: add back Geo3dShape.toString
Date Tue, 10 Oct 2017 02:27:15 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7_1 1f2de94c7 -> c995e02bf


LUCENE-7951: add back Geo3dShape.toString

(cherry picked from commit 0673c57)


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/c995e02b
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/c995e02b
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/c995e02b

Branch: refs/heads/branch_7_1
Commit: c995e02bf5db1ecb46006c488c3138901f08651b
Parents: 1f2de94
Author: David Smiley <dsmiley@apache.org>
Authored: Mon Oct 9 22:24:06 2017 -0400
Committer: David Smiley <dsmiley@apache.org>
Committed: Mon Oct 9 22:27:09 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/c995e02b/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;


Mime
View raw message