W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2009

2002/css-validator/org/w3c/css/util SortedHashtable.java,1.4,1.5

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 25 Feb 2009 20:45:12 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1LcQcy-0000vF-O0@lionel-hutz.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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:08 GMT