You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2017/07/24 19:35:37 UTC

[5/6] tinkerpop git commit: dah.....I'm a tard.

dah.....I'm a tard.


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

Branch: refs/heads/tp32
Commit: 2e11e99c441f64048f125dbd2aa7d626667b9531
Parents: 894e0e8
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Thu Jul 20 17:10:34 2017 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Thu Jul 20 17:10:34 2017 -0600

----------------------------------------------------------------------
 .../tinkerpop/gremlin/process/traversal/step/map/AddEdgeStep.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2e11e99c/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/AddEdgeStep.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/AddEdgeStep.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/AddEdgeStep.java
index 5a083cb..efe5906 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/AddEdgeStep.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/AddEdgeStep.java
@@ -95,7 +95,7 @@ public final class AddEdgeStep<S> extends MapStep<S, Edge>
         Vertex toVertex = this.parameters.get(traverser, TO, () -> (Vertex) traverser.get()).get(0);
         Vertex fromVertex = this.parameters.get(traverser, FROM, () -> (Vertex) traverser.get()).get(0);
         if (toVertex instanceof Attachable)
-            toVertex = ((Attachable<Vertex>) fromVertex)
+            toVertex = ((Attachable<Vertex>) toVertex)
                     .attach(Attachable.Method.get(this.getTraversal().getGraph().orElse(EmptyGraph.instance())));
         if (fromVertex instanceof Attachable)
             fromVertex = ((Attachable<Vertex>) fromVertex)