public void scan(BugCollection bugCollection, String filename) throws Exception { Iterator<BugInstance> i = bugCollection.iterator(); while (i.hasNext()) { BugInstance bugInstance = i.next();  Set<String> contents = bugInstance.getTextAnnotationWords(); for (Iterator<String> j = keywordSet.iterator(); j.hasNext();) { if (contents.contains(j.next())) { match(bugInstance, filename); break; } } }
public void scan(String filename) throws Exception { BugCollection bugCollection = new SortedBugCollection(); bugCollection.readXML(filename, new Project()); scan(bugCollection, filename);
	public void scan(BugCollection bugCollection, String filename) throws Exception {		Iterator<BugInstance> i = bugCollection.iterator();		while (i.hasNext()) {			BugInstance bugInstance = i.next();			Set<String> contents = bugInstance.getTextAnnotationWords();			for (Iterator<String> j = keywordSet.iterator(); j.hasNext();) {				if (contents.contains(j.next())) {					match(bugInstance, filename);					break;				}			}		}	}