EffectiveStatements track StatementContextBase 76/87776/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 14 Feb 2020 14:10:22 +0000 (15:10 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 16 Feb 2020 09:45:05 +0000 (10:45 +0100)
commit228e16cfc78f6cdc98c072e054cdc4546cd8b629
tree44a8600892efbbd68ea13075f2f755a3f40e9b4a
parenta4bd2dd25c5f78fb0cf3be12d0d1d6d3051a004d
EffectiveStatements track StatementContextBase

While StatementContextBase.effective is declared to hold Mutable
contexts, in reality it should only ever hold StatementContextBase
(or whatever is the lowest reactor base class).

Add explicit verification, allowing us to eliminate an instanceof
check in completeChildren().

JIRA: YANGTOOLS-1082
Change-Id: Ic25d056492dba49e2dd8042d3de9e79443369738
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