Fix default value check 23/88923/2
authorMagic_J <panda.magic.j@gmail.com>
Mon, 9 Apr 2018 06:17:44 +0000 (14:17 +0800)
committerRobert Varga <nite@hq.sk>
Tue, 7 Apr 2020 03:34:38 +0000 (03:34 +0000)
commitd0278f68e42875d06e79bc312a06abb53e6f0527
tree3315408082f09bf4566c2afdc2d04d6cfa327c97
parente6d132647efa25f556eb780d763897af187b3a11
Fix default value check

TypeDefinition.getDefaultValue() is returning an optional, which
results in it always being non-null. Fix the check for nullness
and make sure we use the correct value.

Change-Id: Id5aba6cd215d4e19f8b583a81e5599daa9bbe12d
Signed-off-by: Magic_J <panda.magic.j@gmail.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/sal-rest-docgen/src/main/java/org/opendaylight/netconf/sal/rest/doc/impl/ModelGenerator.java