Enumeration firstResult = null; Vector compoundResults = null; for (int i = 0; i < suppliers.length; i++) { Enumeration resources = suppliers[i].getResources(name); if (resources != null) { if (firstResult == null) firstResult = resources; else { if (compoundResults == null) { compoundResults = new Vector(); while (firstResult.hasMoreElements()) compoundResults.add(firstResult.nextElement()); } while (resources.hasMoreElements()) compoundResults.add(resources.nextElement()); } } } return compoundResults == null ? firstResult : compoundResults.elements();
Enumeration results = null; for (int i = 0; i < suppliers.length; i++) results = BundleLoader.compoundEnumerations(results, suppliers[i].getResources(name)); return results;
	public Enumeration getResources(String name) {		Enumeration firstResult = null;		Vector compoundResults = null;		for (int i = 0; i < suppliers.length; i++) {			Enumeration resources = suppliers[i].getResources(name);			if (resources != null) {				if (firstResult == null)					firstResult = resources;				else {					if (compoundResults == null) {						compoundResults = new Vector();						while (firstResult.hasMoreElements())							compoundResults.add(firstResult.nextElement());					}					while (resources.hasMoreElements())						compoundResults.add(resources.nextElement());				}			}		}		return compoundResults == null ? firstResult : compoundResults.elements();	}