Speed up YangParser.addSource()
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / impl / YangParserImpl.java
index 6da2bdda4365e0de18068f3acd668e3e22688516..cd31239007d3b6027490aed983e39113f7572976 100644 (file)
@@ -63,7 +63,7 @@ final class YangParserImpl implements YangParser {
     @Override
     public @NonNull YangParser addSource(final SchemaSourceRepresentation source) throws IOException,
             YangSyntaxErrorException {
-        buildAction.addSources(sourceToStatementStream(source));
+        buildAction.addSource(sourceToStatementStream(source));
         return this;
     }