Fix NONE operation node with automatic lifecycle 26/81426/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:12:35 +0000 (03:12 +0200)
commit1f36b5e960a68f80d8dcf0d3f259f22f74bf2495
treeeb90a1221bf1ba520066a1e456bce2c6f11fc429
parent7a57c2af481c5a6050e992e49ba66bdb65a274be
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 43f0b88599538edd48b971c8e99bbb758baef3e6)
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/AutomaticLifecycleMixin.java