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

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 4.5
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: