for (Iterator<Error> i = errorMessageList.iterator(); i.hasNext(); ) { Error error = i.next();
Error[] errorList = errorSet.toArray(new Error[errorSet.size()]); Arrays.sort(errorList, new Comparator<Error>() { public int compare(Error o1, Error o2) { return o1.getSequence() - o2.getSequence(); } }); for (int i = 0; i < errorList.length; ++i) { Error error = errorList[i];
	public void reportQueuedErrors() {		for (Iterator<Error> i = errorMessageList.iterator(); i.hasNext(); ) {			Error error = i.next();			reportAnalysisError(new AnalysisError(error.getMessage(), error.getCause()));		}				for (Iterator<String> i = missingClassMessageList.iterator(); i.hasNext();) {			reportMissingClass(i.next());		}	}