Fix NONE operation node with automatic lifecycle 27/81427/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 8 Apr 2019 01:15:57 +0000 (03:15 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 8 Apr 2019 01:17:07 +0000 (03:17 +0200)
commit5e5d2293690b19aa333f69922dbf5f5a237eb8cb
tree34d95eae7fd0cb83c26f2dcb569a83dfa16d68bb
parent1ee49d3d71251f8fa220494a667953276d6b9ffe
Fix NONE operation node with automatic lifecycle

In case when previous operations fizzle into a NONE operation
on top of a non-present node, automatic lifecycle would fail
because there is no node to disappear.

Fix this case by not requiring the delegate operation to return
a present node.

JIRA: YANGTOOLS-938
Change-Id: I6b4a01af61e148efa0bae3953dd5aa80b2e63398
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 1f36b5e960a68f80d8dcf0d3f259f22f74bf2495)
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/StructuralContainerModificationStrategy.java