tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ok...@apache.org
Subject [1/2] tinkerpop git commit: OptionalStep needed a reset() method that reset its local child.
Date Tue, 10 Jan 2017 22:01:27 GMT
Repository: tinkerpop
Updated Branches:
  refs/heads/master b098328b4 -> 115488754


OptionalStep needed a reset() method that reset its local child.


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

Branch: refs/heads/master
Commit: 372a083cd8233e552a3983724c43cabcbe512c44
Parents: 64baabf
Author: Marko A. Rodriguez <okrammarko@gmail.com>
Authored: Tue Jan 10 15:01:13 2017 -0700
Committer: Marko A. Rodriguez <okrammarko@gmail.com>
Committed: Tue Jan 10 15:01:13 2017 -0700

----------------------------------------------------------------------
 .../gremlin/process/traversal/step/branch/OptionalStep.java    | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/372a083c/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/OptionalStep.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/OptionalStep.java
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/OptionalStep.java
index 2db92da..1e7fb26 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/OptionalStep.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/OptionalStep.java
@@ -89,4 +89,10 @@ public final class OptionalStep<S> extends AbstractStep<S, S>
implements Travers
     public Set<TraverserRequirement> getRequirements() {
         return this.optionalTraversal.getTraverserRequirements();
     }
+
+    @Override
+    public void reset() {
+        super.reset();
+        this.optionalTraversal.reset();
+    }
 }


Mime
View raw message