Stephen Mallette created TINKERPOP-2310:
-------------------------------------------
Summary: Reduce Traversal.isRoot() to a check of EmptyStep
Key: TINKERPOP-2310
URL: https://issues.apache.org/jira/browse/TINKERPOP-2310
Project: TinkerPop
Issue Type: Improvement
Components: process
Affects Versions: 3.5.0
Reporter: Stephen Mallette
Assignee: Stephen Mallette
The {{Traversal.isRoot()}} default implementation looks like:
{code}
public default boolean isRoot() {
return null == getParent() || getParent() instanceof EmptyStep;
}
{code}
Could this be reduced to just a check of {{EmptyStep}} - i.e. can the parent
never be {{null}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)