Release YangParser from ProcessorModuleReactor 99/86799/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 7 Jan 2020 22:23:12 +0000 (23:23 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 7 Jan 2020 23:34:16 +0000 (00:34 +0100)
commitf0f4b87fe3c75148863d31fd4d8f7687f22e0add
tree349a1a88e5648f838ee543f5ed6d75221357cc7f
parentf4af5070a8d1fb49a073dc0f1e83f7912509d456
Release YangParser from ProcessorModuleReactor

Once we have built the SchemaContext, we should not be retaining
the YangParser instance, as it contains a reference to
BuildGlobalContext, which in turn holds all the scratch data
used during SchemaContext assembly.

Throw all of that away as soon as we have a SchemaContext.

JIRA: YANGTOOLS-1061
Change-Id: Idbc4ab91861e3e7581daa3cebceb0fa49823a028
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit de31cd1e591ab1a83ca3fafd20220d3937463b8a)
yang/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/ProcessorModuleReactor.java