Collection patterns = factory.getReportedBugPatterns(); ArrayList abbrs = new ArrayList(); for (Iterator iter = patterns.iterator(); iter.hasNext();) { BugPattern pattern = (BugPattern) iter.next();
Collection<BugPattern> patterns = factory.getReportedBugPatterns(); LinkedHashSet<String> abbrs = new LinkedHashSet<String>(); for (Iterator<BugPattern> iter = patterns.iterator(); iter.hasNext();) { BugPattern pattern = iter.next();
	protected String createBugsAbbreviation(DetectorFactory factory) {		StringBuffer sb = new StringBuffer();		Collection patterns = factory.getReportedBugPatterns();		ArrayList abbrs = new ArrayList();		for (Iterator iter = patterns.iterator(); iter.hasNext();) {			BugPattern pattern = (BugPattern) iter.next();			String abbr = pattern.getAbbrev();			if (abbrs.contains(abbr)) {				continue;			}			abbrs.add(abbr);		}		for (Iterator iter = abbrs.iterator(); iter.hasNext();) {			String element = (String) iter.next();			sb.append(element);			if (iter.hasNext()) {				sb.append("|"); //$NON-NLS-1$			}		}		return sb.toString();	}