Move SourceSpecificContext.lookupDeclaredChild() 70/87670/5
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 12:53:53 +0000 (13:53 +0100)
commit995d7c2995668d84abc207b5eb6144747e8457a5
treed5080358237c83c695058cc65803ea27c2d64a3c
parent9e09432e489d9afefe32e1495919aa674aca461d
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