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