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 2015/06/11 16:17:14 UTC
incubator-tinkerpop git commit: ScopeP allows the object to flow
through when nothing binds to the scope variable.
Repository: incubator-tinkerpop
Updated Branches:
refs/heads/master 19582da8f -> 861cc312f
ScopeP allows the object to flow through when nothing binds to the scope variable.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/861cc312
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/861cc312
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/861cc312
Branch: refs/heads/master
Commit: 861cc312fa169730d3f1ae5993961d83724de052
Parents: 19582da
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Thu Jun 11 08:17:07 2015 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Thu Jun 11 08:17:07 2015 -0600
----------------------------------------------------------------------
.../apache/tinkerpop/gremlin/process/traversal/util/ScopeP.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/861cc312/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/ScopeP.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/ScopeP.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/ScopeP.java
index 4e95639..aceab32 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/ScopeP.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/ScopeP.java
@@ -48,7 +48,7 @@ public final class ScopeP<V> extends P<V> {
@Override
public boolean test(final V testValue) {
- return this.biPredicate.test(testValue, this.value);
+ return this.value == null || this.biPredicate.test(testValue, this.value);
}
@Override