Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1182

Update MutableTreeNode methods

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 7.0.0
    • None
    • None
    • None

      yang.data.api.schema.tree.spi.MutableTreeNode acts as a lazy intermediary between ModificationApplyOperation and a backing Map. Its addChild() and removeChild() hide lifecycle events, making it impossible to discern when a child was replaced by addChild() and what child was removed by removeChild().

      Update these methods (renaming addChild() to putChild()) to match map semantics.

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: