Use ValueNode in LeafRefValidation 34/61234/2
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 5 Aug 2017 16:56:19 +0000 (18:56 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 15 Aug 2017 08:19:22 +0000 (08:19 +0000)
commit2f8ab84d2283b17b6cf5879bdcfe9c95465ab560
treef917f96e43970b553ab2b58025a7808a9e3994a0
parentd5639af6d592698b8120e6fd2969493ce57feb72
Use ValueNode in LeafRefValidation

ValueNode is the common ancestor of LeafNode and LeafsetEntryNode,
so we can do a single instanceof check.

Change-Id: I3faf13cae56896e234520c8d7498cf85e0e742a6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/leafref/LeafRefValidatation.java