Since we are adding a single source only, we can go through
the single-argument method, making things a tad more efficient.
JIRA: YANGTOOLS-652
Change-Id: I00519eb6fedaa9ab27b3b3f13bcc0b10b542f134
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
@Override
public @NonNull YangParser addSource(final SchemaSourceRepresentation source) throws IOException,
YangSyntaxErrorException {
- buildAction.addSources(sourceToStatementStream(source));
+ buildAction.addSource(sourceToStatementStream(source));
return this;
}