Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-166

Add Tree.isRoot() method instead of relying on Tree.getParent() == null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.4
    • core
    • None

    Description

      Access to through the parent node is problematic wrt. to access control. So instead of relying on Tree.getParent() == null to check for root, we should rather have a method Tree.isRoot().

      Attachments

        Issue Links

          Activity

            People

              mduerig Michael Dürig
              mduerig Michael Dürig
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: