We should not be returning null, but "this", fix that.
Change-Id: I0683da43a4c1d0b30f8f7d0680be2aa17f4e05ec
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
@Override
public YangParser addSource(final SchemaSourceRepresentation source) throws IOException, YangSyntaxErrorException {
buildAction.addSources(sourceToStatementStream(source));
- return null;
+ return this;
}
@Override
public YangParser addLibSource(final SchemaSourceRepresentation source) throws IOException,
YangSyntaxErrorException {
buildAction.addLibSources(sourceToStatementStream(source));
- return null;
+ return this;
}
@Override