You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "angela (JIRA)" <ji...@apache.org> on 2013/01/24 10:47:13 UTC

[jira] [Resolved] (OAK-580) Add Root#getRootTree (or getTreeRoot)

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

angela resolved OAK-580.
------------------------

    Resolution: Won't Fix

yes... wontfix...
                
> Add Root#getRootTree (or getTreeRoot)
> -------------------------------------
>
>                 Key: OAK-580
>                 URL: https://issues.apache.org/jira/browse/OAK-580
>             Project: Jackrabbit Oak
>          Issue Type: Wish
>            Reporter: angela
>            Assignee: Michael Dürig
>
> in the current source we are having more than 150 usages of {code}Root.getTree("/"){code}. most of those calls are used to retrieve
> other items or are passed to method calls that don't expect a null value.
> since from my understanding the root-tree will never be null this basically
> correct. nevertheless my IDE complains as the getTree method is annotated
> with @CheckForNull.
> wouldn't it be desirable to add a convenience method to the Root interface that allows to access the root-tree? for example
> {code}
> /**
>  * Returns the root tree.
>  */
> @Nonnull
> Tree getRootTree();
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira