BUG-5717: eliminate StmtContext.substatements() 62/48262/1
authorRobert Varga <rovarga@cisco.com>
Thu, 10 Nov 2016 12:49:36 +0000 (13:49 +0100)
committerRobert Varga <rovarga@cisco.com>
Fri, 11 Nov 2016 14:19:48 +0000 (15:19 +0100)
commitf55a3162fe8c64357f0d28805c0c91095afe513d
tree5a234ba94c81c7e974c3b2d1dd6ff8368cc19268
parentcbe54fe28185409bba130b076343791846fdde5c
BUG-5717: eliminate StmtContext.substatements()

There is a single caller, which really wants to get
the declared belongs-to statement.

Convert the caller and eliminate the method, making
StatementContextBase.substatements a purely-local
collection lending itself to refactoring.

Change-Id: I980c255eb426558a6a535683ccc8179082919c37
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 3c66a20cca00b3bffb9807000400ad88affea6d7)
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/StmtContext.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/StatementContextBase.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/Utils.java