Fix spotbugs issues in yang-parser-spi 00/88500/11
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 17 Feb 2022 11:16:36 +0000 (12:16 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 17 Feb 2022 12:33:39 +0000 (12:33 +0000)
commited6bfbad4b36b54d288604cb0efb97edd46db6a6
tree053b8fa50db88072f56b393080c9edb7c32f9810
parentebaa7f6a56786abd8865b01acc56054d907dcb50
Fix spotbugs issues in yang-parser-spi

SpotBugs is correctly pointing out that we could in theory end
up with a null dereference here. Make sure we verifyNotNull() it
and produce a correct message.

Change-Id: Ib4097986c3e329046be273a4992a7b7112951c5c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
parser/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/SchemaTreeNamespace.java
parser/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/AbstractBooleanStatementSupport.java