Move SourceSpecificContext.lookupDeclaredChild() 91/87691/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 13 Feb 2020 12:24:57 +0000 (13:24 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 13 Feb 2020 22:44:22 +0000 (23:44 +0100)
commit063a5de8c4657c365f75b4a1b9f0d58adbd4a4b7
tree2932720ad3fe37a3e47f130b5899ede3ebf0ef50
parent16c1e79ba34029ce6811a54405356be742dcbb46
Move SourceSpecificContext.lookupDeclaredChild()

This method is only used from StatementContextWriter and it is
not touching any SourceSpecificContext state. Move it to its sole
caller as a private method returning a nullable.

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