Do not validate non-existent roots 06/75806/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Sep 2018 21:39:18 +0000 (23:39 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 6 Sep 2018 09:27:49 +0000 (11:27 +0200)
commit848e35e8bd4ff82203c295c7cd640e212dfea5c8
treeec36b8a633e5f89969b4189b5e481c6f0b255639
parente28e322d5f6c74a74159d8c25c49f1fdcd069231
Do not validate non-existent roots

If we have no data there is no point to validate anything, and
having the root value as an invariant makes code a lot simpler.

JIRA: YANGTOOLS-892
Change-Id: Ifd68b09c03d90c8881381809047e59f3fe92682b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit d2e80009970418f4755854f0918c5d80afb21a34)
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/leafref/LeafRefValidatation.java