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/01/27 21:25:06 UTC
[04/12] tinkerpop git commit: Finalized variables and arguments.
Finalized variables and arguments.
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/4dfba770
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/4dfba770
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/4dfba770
Branch: refs/heads/master
Commit: 4dfba770877d564637417df668fdb9cddebce36b
Parents: c9999bd
Author: Ted Wilmes <tw...@gmail.com>
Authored: Fri Jan 27 14:12:51 2017 -0600
Committer: Ted Wilmes <tw...@gmail.com>
Committed: Fri Jan 27 14:12:51 2017 -0600
----------------------------------------------------------------------
.../strategy/optimization/PathRetractionStrategy.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4dfba770/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/optimization/PathRetractionStrategy.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/optimization/PathRetractionStrategy.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/optimization/PathRetractionStrategy.java
index 439d568..91f07f9 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/optimization/PathRetractionStrategy.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/optimization/PathRetractionStrategy.java
@@ -132,7 +132,7 @@ public final class PathRetractionStrategy extends AbstractTraversalStrategy<Trav
Step<?, ?> parent = traversal.getParent().asStep();
final List<Pair<Step, Set<String>>> parentKeeperPairs = new ArrayList<>();
while (!parent.equals(EmptyStep.instance())) {
- Set<String> parentKeepLabels = new HashSet<>(PathUtil.getReferencedLabels(parent));
+ final Set<String> parentKeepLabels = new HashSet<>(PathUtil.getReferencedLabels(parent));
parentKeepLabels.addAll(PathUtil.getReferencedLabelsAfterStep(parent));
parentKeeperPairs.add(new Pair<>(parent, parentKeepLabels));
parent = parent.getTraversal().getParent().asStep();
@@ -214,21 +214,21 @@ public final class PathRetractionStrategy extends AbstractTraversalStrategy<Trav
}
}
- private void applyToChildren(Set<String> keepLabels, List<Traversal.Admin<Object, Object>> children) {
- for (Traversal.Admin<Object, Object> child : children) {
+ private void applyToChildren(final Set<String> keepLabels, final List<Traversal.Admin<Object, Object>> children) {
+ for (final Traversal.Admin<Object, Object> child : children) {
TraversalHelper.applyTraversalRecursively(trav -> addLabels(trav, keepLabels), child);
}
}
private void addLabels(final Traversal.Admin traversal, final Set<String> keepLabels) {
- for (Object s : traversal.getSteps()) {
+ for (final Object s : traversal.getSteps()) {
if (s instanceof PathProcessor) {
addLabels((PathProcessor) s, keepLabels);
}
}
}
- private void addLabels(PathProcessor s, Set<String> keepLabels) {
+ private void addLabels(final PathProcessor s, final Set<String> keepLabels) {
if (s.getKeepLabels() == null) {
s.setKeepLabels(new HashSet<>(keepLabels));
} else {