[seam-commits] Seam SVN: r7245 - branches/Seam_2_0/src/main/org/jboss/seam/core.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Jan 25 21:59:23 EST 2008
Author: norman.richards at jboss.com
Date: 2008-01-25 21:59:23 -0500 (Fri, 25 Jan 2008)
New Revision: 7245
Modified:
branches/Seam_2_0/src/main/org/jboss/seam/core/SeamResourceBundle.java
Log:
JBSEAM-2526
Modified: branches/Seam_2_0/src/main/org/jboss/seam/core/SeamResourceBundle.java
===================================================================
--- branches/Seam_2_0/src/main/org/jboss/seam/core/SeamResourceBundle.java 2008-01-26 01:47:52 UTC (rev 7244)
+++ branches/Seam_2_0/src/main/org/jboss/seam/core/SeamResourceBundle.java 2008-01-26 02:59:23 UTC (rev 7245)
@@ -80,15 +80,16 @@
List<java.util.ResourceBundle> pageBundles = getPageResourceBundles();
List<ResourceBundle> bundles = getBundlesForCurrentLocale();
Enumeration<String>[] enumerations = new Enumeration[bundles.size() + pageBundles.size()];
+
int i = 0;
- for (; i < pageBundles.size(); i++)
- {
- enumerations[i++] = pageBundles.get(i).getKeys();
+ for (java.util.ResourceBundle bundle: pageBundles) {
+ enumerations[i++] = bundle.getKeys();
}
- for (; i < bundles.size(); i++)
- {
- enumerations[i] = bundles.get(i).getKeys();
+
+ for (ResourceBundle bundle: bundles) {
+ enumerations[i++] = bundle.getKeys();
}
+
return new EnumerationEnumeration<String>(enumerations);
}
@@ -150,4 +151,4 @@
return org.jboss.seam.core.Locale.instance();
}
-}
\ No newline at end of file
+}
More information about the seam-commits
mailing list