Fix NONE operation node with automatic lifecycle 25/81425/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 8 Apr 2019 01:10:04 +0000 (03:10 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 8 Apr 2019 01:10:04 +0000 (03:10 +0200)
commit43f0b88599538edd48b971c8e99bbb758baef3e6
treedb36c5b1ba1eaec45f52ab15fd2a8f97f227b563
parente52e9a1e6d035f64165ce1bc2bb8f6686f1cba6d
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>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/AutomaticLifecycleMixin.java