Commits

dannas committed b02221d

CLI: Use the Crawler interface as type, not the implementation.

Comments (0)

Files changed (1)

src/main/java/webcrawler/CLI.java

 import org.apache.commons.cli.HelpFormatter;
 import org.apache.commons.cli.Options;
 import org.apache.commons.cli.ParseException;
+
 import webcrawler.crawlers.Crawler;
-
 import webcrawler.crawlers.CrawlerFactory;
 import webcrawler.crawlers.impl.BreadthFirstCrawlerFactory;
 import webcrawler.crawlers.impl.CLICrawlerAdapter;
 	private Controller controller;
 
 	// The model
-	private CLICrawlerAdapter crawler;
+	private Crawler crawler;
 
 	private enum Subcommand {IMG};