for (Iterator<String> i = bugCodeSet.iterator(); i.hasNext();) { String bugCode = i.next();
for (String bugCode : bugCodeSet) {
	private void writeBugCodes() throws IOException {		// Find bug codes reported		Set<String> bugCodeSet = new HashSet<String>();		for (Iterator<BugInstance> i = getBugCollection().iterator(); i.hasNext();) {			BugInstance bugInstance = i.next();			String bugCode = bugInstance.getAbbrev();			if (bugCode != null) {				bugCodeSet.add(bugCode);			}		}		// Emit element describing each reported bug code		for (Iterator<String> i = bugCodeSet.iterator(); i.hasNext();) {			String bugCode = i.next();			String bugCodeDescription = I18N.instance().getBugTypeDescription(bugCode);			if (bugCodeDescription == null)				continue;			XMLAttributeList attributeList = new XMLAttributeList();			attributeList.addAttribute("abbrev", bugCode);			xmlOutput.openTag("BugCode", attributeList);			xmlOutput.openTag("Description");			xmlOutput.writeText(bugCodeDescription);			xmlOutput.closeTag("Description");			xmlOutput.closeTag("BugCode");		}	}