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