- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 25 Feb 2009 20:45:12 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/util In directory hutz:/tmp/cvs-serv3512/org/w3c/css/util Modified Files: SortedHashtable.java Log Message: using jdk5 api Index: SortedHashtable.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/util/SortedHashtable.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- SortedHashtable.java 14 Sep 2005 15:15:32 -0000 1.4 +++ SortedHashtable.java 25 Feb 2009 20:45:10 -0000 1.5 @@ -54,10 +54,7 @@ Object[] sortedArray = new Object[size()]; int i = 0; - for (Enumeration e = elements(); e.hasMoreElements(); i++) { - sortedArray[i] = e.nextElement(); - } - + values().toArray(sortedArray); sort.sort(sortedArray, 0, size()-1, new CompareString()); return sortedArray;
Received on Wednesday, 25 February 2009 20:45:22 UTC