Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-4295 jcr: utils
  3. MAGNOLIA-4328

Use javax.jcr.Item#isNode() instead of instanceof Node/Property

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5
    • Component/s: None
    • Labels:
      None
    • Magnolia Release:
      4.5

      Description

      isNode() will return true on Nodes and false on Properties - no need to use instanceof here. In addition - there's no other cases so isNode() == false guarantees we have a Property.

        Attachments

          Activity

            People

            Assignee:
            dlipp Daniel Lipp
            Reporter:
            dlipp Daniel Lipp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: