You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Stephen Mallette (Jira)" <ji...@apache.org> on 2019/11/04 12:44:00 UTC
[jira] [Created] (TINKERPOP-2310) Reduce Traversal.isRoot() to a
check of EmptyStep
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)