You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2016/08/18 11:34:25 UTC

[1/2] tinkerpop git commit: Added a toString() override for EmptyGraph

Repository: tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1278 2bf6dab6f -> 5db60212a


Added a toString() override for EmptyGraph


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/37bd37aa
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/37bd37aa
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/37bd37aa

Branch: refs/heads/TINKERPOP-1278
Commit: 37bd37aa3720e7389cf0d66ffed8bbb7a1eed2cd
Parents: ae17fd8
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Aug 18 07:32:59 2016 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Aug 18 07:32:59 2016 -0400

----------------------------------------------------------------------
 .../tinkerpop/gremlin/structure/util/empty/EmptyGraph.java     | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/37bd37aa/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/empty/EmptyGraph.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/empty/EmptyGraph.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/empty/EmptyGraph.java
index fd13a38..1d9e6dd 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/empty/EmptyGraph.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/empty/EmptyGraph.java
@@ -25,6 +25,7 @@ import org.apache.tinkerpop.gremlin.structure.Graph;
 import org.apache.tinkerpop.gremlin.structure.Transaction;
 import org.apache.tinkerpop.gremlin.structure.Vertex;
 import org.apache.tinkerpop.gremlin.structure.VertexProperty;
+import org.apache.tinkerpop.gremlin.structure.util.StringFactory;
 
 import java.util.Collections;
 import java.util.Iterator;
@@ -96,6 +97,11 @@ public final class EmptyGraph implements Graph {
         return Collections.emptyIterator();
     }
 
+    @Override
+    public String toString() {
+        return StringFactory.graphString(this, "vertices: 0 edges: 0");
+    }
+
     /**
      * Features defined such that they support immutability but allow all other possibilities.
      */


[2/2] tinkerpop git commit: Merge remote-tracking branch 'origin/TINKERPOP-1278' into TINKERPOP-1278

Posted by sp...@apache.org.
Merge remote-tracking branch 'origin/TINKERPOP-1278' into TINKERPOP-1278


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/5db60212
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/5db60212
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/5db60212

Branch: refs/heads/TINKERPOP-1278
Commit: 5db60212a81552ae908a9699573b543669fd9c19
Parents: 37bd37a 2bf6dab
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Aug 18 07:34:11 2016 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Aug 18 07:34:11 2016 -0400

----------------------------------------------------------------------
 CHANGELOG.asciidoc                           | 2 +-
 docs/src/reference/gremlin-variants.asciidoc | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------