CVSROOT: /sources/classpath
Module name: cp-tools
Changes by: Andrew John Hughes <gnu_andrew> 12/01/20 17:43:08
Modified files:
. : ChangeLog
src/gnu/localegen: PropertiesGenerator.java
Log message:
Sort the keys in the property file so different revisions are
comparable, resulting in simpler patches.
2012-01-20 Andrew John Hughes <[email protected]>
Sort keys to make different revisions of property files
comparable.
* src/gnu/localegen/PropertiesGenerator.java,
(TimeZoneContent.generateContent(PrintWriter)): Sort
keys before iterating over them so timezones are listed
in alphabetical order.
(HashtableContent.table): Change type to SortedMap.
(HashtableContent(String,SortedMap)): Accept SortedMap not Map.
(HashtableContent(String,Map)): New constructor which converts
the Map to a sorted one using natural ordering.
(computeCurrencies(Map)): Use a TreeMap rather than a HashMap
so keys are sorted.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/cp-tools/ChangeLog?cvsroot=classpath&r1=1.73&r2=1.74
http://cvs.savannah.gnu.org/viewcvs/cp-tools/src/gnu/localegen/PropertiesGenerator.java?cvsroot=classpath&r1=1.10&r2=1.11