*
* @param errorNumber Error number.
* @param pages List of pages to complete.
*/
private void retrieveCheckWikiPages(int errorNumber, List<Page> pages) {
CheckWiki cw = APIFactory.getCheckWiki();
EnumWikipedia wiki = getWikipedia();
CheckErrorAlgorithm algorithm = CheckErrorAlgorithms.getAlgorithm(wiki, errorNumber);
List<CheckError> errors = new ArrayList<CheckError>();
try {
cw.retrievePages(algorithm, 10000, wiki, errors);
for (CheckError error: errors) {
for (int pageNum = 0; pageNum < error.getPageCount(); pageNum++) {
pages.add(error.getPage(pageNum));
}
}