import org.opendaylight.yangtools.yang.parser.spi.validation.ValidationBundlesNamespace;
import org.opendaylight.yangtools.yang.parser.spi.validation.ValidationBundlesNamespace.ValidationBundleType;
import org.opendaylight.yangtools.yang.parser.stmt.reactor.SourceSpecificContext.PhaseCompletionProgress;
+import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.RecursiveObjectLeaker;
import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.Utils;
import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.EffectiveSchemaContext;
import org.slf4j.Logger;
private final boolean enabledSemanticVersions;
public BuildGlobalContext(final Map<ModelProcessingPhase, StatementSupportBundle> supports,
- StatementParserMode statementParserMode, final Predicate<QName> isFeatureSupported) {
+ final StatementParserMode statementParserMode, final Predicate<QName> isFeatureSupported) {
super();
this.supports = Preconditions.checkNotNull(supports, "BuildGlobalContext#supports cannot be null");
Preconditions.checkNotNull(statementParserMode, "Statement parser mode must not be null.");
public BuildGlobalContext(final Map<ModelProcessingPhase, StatementSupportBundle> supports,
final Map<ValidationBundleType, Collection<?>> supportedValidation,
- StatementParserMode statementParserMode, final Predicate<QName> isFeatureSupported) {
+ final StatementParserMode statementParserMode, final Predicate<QName> isFeatureSupported) {
super();
this.supports = Preconditions.checkNotNull(supports, "BuildGlobalContext#supports cannot be null");
Preconditions.checkNotNull(statementParserMode, "Statement parser mode must not be null.");
}
} catch (SourceException ex) {
throw new SomeModifiersUnresolvedException(currentPhase, sourceId, ex);
+ } finally {
+ RecursiveObjectLeaker.cleanup();
}
return new EffectiveSchemaContext(rootStatements, rootEffectiveStatements);