incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awi...@apache.org
Subject svn commit: r429943 - /incubator/adffaces/trunk/plugins/maven-i18n-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/i18n/uixtools/JSLocaleElementsGenerator.java
Date Wed, 09 Aug 2006 03:21:44 GMT
Author: awiner
Date: Tue Aug  8 20:21:44 2006
New Revision: 429943

URL: http://svn.apache.org/viewvc?rev=429943&view=rev
Log:
Commit i18n-plugin Java 5 improvements

Modified:
    incubator/adffaces/trunk/plugins/maven-i18n-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/i18n/uixtools/JSLocaleElementsGenerator.java

Modified: incubator/adffaces/trunk/plugins/maven-i18n-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/i18n/uixtools/JSLocaleElementsGenerator.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/plugins/maven-i18n-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/i18n/uixtools/JSLocaleElementsGenerator.java?rev=429943&r1=429942&r2=429943&view=diff
==============================================================================
--- incubator/adffaces/trunk/plugins/maven-i18n-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/i18n/uixtools/JSLocaleElementsGenerator.java
(original)
+++ incubator/adffaces/trunk/plugins/maven-i18n-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/i18n/uixtools/JSLocaleElementsGenerator.java
Tue Aug  8 20:21:44 2006
@@ -790,7 +790,7 @@
 "  /**\n" +
 "   * Returns the list of supported locales.\n" +
 "   */\n" +
-"  static public HashMap getSupportedLocales()\n" +
+"  static public HashMap<Locale, Locale> getSupportedLocales()\n" +
 "  {\n" +
 "    return _sLocaleMapper;\n" +
 "  }\n" +
@@ -806,14 +806,15 @@
   private static final String _LOCALE_LIST_CODE_END =
 "  };\n" +
 "\n" +
-"  static private HashMap _sLocaleMapper;\n" +
+"  static private HashMap<Locale, Locale> _sLocaleMapper;\n" +
 "\n" +
 "  static\n" +
 "  {\n" +
-"    _sLocaleMapper = new HashMap();\n" +
-"    for(int i=0; i<_sLocales.length;i++) {"+
-"        _sLocaleMapper.put(_sLocales[i],_sLocales[i]);\n"+
-"     }\n"+
+"    _sLocaleMapper = new HashMap<Locale, Locale>();\n" +
+"    for(Locale locale : _sLocales)\n" +
+"    {\n" +
+"      _sLocaleMapper.put(locale, locale);\n" +
+"    }\n" +
 "  }\n" +
 "}\n";
 



Mime
View raw message