Skip to content

TINKERPOP-2310 and TINKERPOP-2311 Folllow up refactoring after TraversalStrategy changes#1216

Merged
spmallette merged 2 commits intomasterfrom
TINKERPOP-2311
Nov 18, 2019
Merged

TINKERPOP-2310 and TINKERPOP-2311 Folllow up refactoring after TraversalStrategy changes#1216
spmallette merged 2 commits intomasterfrom
TINKERPOP-2311

Conversation

@spmallette
Copy link
Contributor

https://issues.apache.org/jira/browse/TINKERPOP-2310
https://issues.apache.org/jira/browse/TINKERPOP-2311

A few added refactoring opportunities were noticed as a result of TINKERPOP-1568. Basically, TraversalStrategies now implements Iterable and the semantics of Traversal.isRoot() have been narrowed to only check for EmptyStep rather than also checking for null.

All tests pass with docker/build.sh -t -n -i

VOTE +1

Minor refactoring to polish up toList() usage a bit in favor of foreach and Iterator usage where sensible.
Copy link
Contributor

@jorgebay jorgebay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

VOTE +1

* Set the {@link org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParent} {@link Step} that is
* the parent of this traversal. Traversals can be nested and this is the means by which the traversal tree is
* connected.
* connected. If there is no parent, then it should be a {@link EmptyStep}.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:+100 for the clarification in the javadoc.

@spmallette spmallette merged commit 82dd208 into master Nov 18, 2019
@spmallette spmallette deleted the TINKERPOP-2311 branch November 18, 2019 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants