Use simple requireNonNull() 15/95215/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 17 Feb 2021 22:42:02 +0000 (23:42 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 18 Feb 2021 00:23:56 +0000 (00:23 +0000)
commitcd04351669d5921088a73a275954ba78336c1a44
tree296f999128497dc170dc45cc5c12090b89dd967b
parent5e558f7dd9195b14ac37670369d50b940b07f143
Use simple requireNonNull()

StatementContextBase.addPhaseCompletedListener() is the heart of
inference and the checkNotNull() here is taking sourceReference().

Acquiring source reference is an indirection, which may actually
got through a forwarding chain. While we could use and if/throws,
let's just use plain requireNonNull.

JIRA: YANGTOOLS-652
Change-Id: I77d5b1dcc8b6b575d01ced0850d7081909b57964
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-reactor/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/StatementContextBase.java