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/23 20:55:12 UTC

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

angela created OAK-580:
--------------------------

             Summary: 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


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