[ 
https://issues.apache.org/jira/browse/TINKERPOP-2310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Mallette closed TINKERPOP-2310.
---------------------------------------
    Fix Version/s: 3.5.0
       Resolution: Done

> 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
>            Priority: Minor
>              Labels: breaking
>             Fix For: 3.5.0
>
>
> 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)

Reply via email to