Take advantage of ValueNode in NormalizedNodes 85/84485/2
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 15 Sep 2019 22:10:56 +0000 (00:10 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 15 Sep 2019 22:12:06 +0000 (00:12 +0200)
commit383c8a118c7bf009c268ced6c2db555244054e04
tree9bd2a0f3ed73ef400946385906b097b6a093aa6e
parente36fb827370e197a732dac43e123fe780e521303
Take advantage of ValueNode in NormalizedNodes

We can perform a single instanceof check instead of two to check
for LeafNode and LeafSetEntryNode. Also cleanup checks to remove
superfluous type arguments.

Change-Id: Id9964088ff0751217175cf1a8c6f13009a0276e8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/NormalizedNodes.java