import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext.Mutable;
import org.opendaylight.yangtools.yang.parser.spi.source.IncludedSubmoduleNameToIdentifier;
-import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.IncludeEffectiveStatementImpl;
public class IncludeStatementImpl extends AbstractDeclaredStatement<String> implements IncludeStatement {
revisionDate = SimpleDateFormatUtil.DEFAULT_DATE_IMP;
}
- return new ModuleIdentifierImpl(subModuleName, Optional.<URI> absent(), Optional.<Date> of(revisionDate));
+ return new ModuleIdentifierImpl(subModuleName, Optional.absent(), Optional.of(revisionDate));
}
@Override
public void onFullDefinitionDeclared(final Mutable<String, IncludeStatement,
- EffectiveStatement<String, IncludeStatement>> stmt) throws SourceException {
+ EffectiveStatement<String, IncludeStatement>> stmt) {
super.onFullDefinitionDeclared(stmt);
SUBSTATEMENT_VALIDATOR.validate(stmt);
}
return firstDeclared(RevisionDateStatement.class);
}
-}
\ No newline at end of file
+}