[YANGTOOLS-1182] Update MutableTreeNode methods Created: 22/Nov/20 Updated: 10/Apr/22 Resolved: 22/Nov/20 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.0 |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
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. |