Release YangParser from ProcessorModuleReactor 96/86796/2
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 22:50:27 +0000 (23:50 +0100)
commitde31cd1e591ab1a83ca3fafd20220d3937463b8a
tree7670de449edb5238420821689adc31dd05326d97
parent2521e6a88f8d9f8926fdf7e74c036db81a9e0872
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>
yang/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/ProcessorModuleReactor.java