Author: [email protected]
Date: Wed Apr  1 12:11:24 2009
New Revision: 5148

Modified:
    trunk/user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java

Log:
CurrencyListGenerator was iterating over a HashMap, causing inconsisent  
results.
Replaced with a TreeMap.

Review by: spoon

Modified:  
trunk/user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java
==============================================================================
--- trunk/user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java        
 
(original)
+++ trunk/user/src/com/google/gwt/i18n/rebind/CurrencyListGenerator.java        
 
Wed Apr  1 12:11:24 2009
@@ -41,6 +41,7 @@
  import java.util.List;
  import java.util.Map;
  import java.util.Set;
+import java.util.TreeMap;
  import java.util.Map.Entry;

  /**
@@ -314,7 +315,7 @@
        writer.println("  return;");
        writer.println("}");
        boolean fetchedLocale = false;
-      Map<String, Set<GwtLocale>> localeMap = new HashMap<String,
+      Map<String, Set<GwtLocale>> localeMap = new TreeMap<String,
            Set<GwtLocale>>();
        String compileLocaleClass = processChildLocale(logger, context,
            targetClass, localeMap, compileLocale);

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to