Iterator<PackageStats> i = packageStatsMap.values().iterator(); while (i.hasNext()) { PackageStats stats = i.next();
for (PackageStats stats : packageStatsMap.values()) {
	public void writeXML(XMLOutput xmlOutput) throws IOException {		xmlOutput.startTag("FindBugsSummary");				xmlOutput.addAttribute("timestamp",				new SimpleDateFormat(TIMESTAMP_FORMAT, Locale.ENGLISH).format(timestamp));		xmlOutput.addAttribute("total_classes", String.valueOf(totalClasses));		xmlOutput.addAttribute("total_bugs", String.valueOf(totalErrors[0]));		xmlOutput.addAttribute("total_size", String.valueOf(totalSize));		xmlOutput.addAttribute("num_packages", String.valueOf(packageStatsMap.size()));				PackageStats.writeBugPriorities(xmlOutput, totalErrors);				xmlOutput.stopTag(false);				Iterator<PackageStats> i = packageStatsMap.values().iterator();		while (i.hasNext()) {			PackageStats stats = i.next();			stats.writeXML(xmlOutput);		}				xmlOutput.closeTag("FindBugsSummary");	}