tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [07/45] tinkerpop git commit: Finalized variables and arguments.
Date Mon, 30 Jan 2017 20:39:21 GMT
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/TINKERPOP-1612
Commit: 4dfba770877d564637417df668fdb9cddebce36b
Parents: c9999bd
Author: Ted Wilmes <twilmes@gmail.com>
Authored: Fri Jan 27 14:12:51 2017 -0600
Committer: Ted Wilmes <twilmes@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 {


Mime
View raw message