Do not retain namespace context when not needed 12/90812/3
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 29 Jun 2020 19:51:04 +0000 (21:51 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 30 Jun 2020 09:18:11 +0000 (11:18 +0200)
commit1cfaa0281c43f939cd64261e1605e8757d39aa2f
treefa8f4ab089efea328d47c445023c6540ecbc97dd
parentcf8b98d69602809355f85703cfe4d635d9f72bdf
Do not retain namespace context when not needed

If we have not recorded presence of a literal expression, there
is no legal way we can be asked to resolve a literal to either
a QName or a YangInstanceIdentifier.

Track creation of YangLiteralExprs, so that we can ditch the
namespace context we will not need it.

JIRA: YANGTOOLS-1115
Change-Id: If1572fc57d78eaaea7feb3025a5a161519df2b9a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-xpath-impl/src/main/java/org/opendaylight/yangtools/yang/xpath/impl/AntlrXPathParser.java
yang/yang-xpath-impl/src/main/java/org/opendaylight/yangtools/yang/xpath/impl/AntlrYangXPathExpression.java