Take advantage of ValueNode in NormalizedNodes 90/84490/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 15 Sep 2019 22:10:56 +0000 (00:10 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 16 Sep 2019 00:06:54 +0000 (02:06 +0200)
commit6cf1db2892ffb35428787a06af562d49996682a2
treee92cff6d7282990a8abe9f6637d071be595ea003
parente82a693d2cc70e8b7bc667a31400ac97ba1770ff
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>
(cherry picked from commit 383c8a118c7bf009c268ced6c2db555244054e04)
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/NormalizedNodes.java