W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2010

2006/unicorn/src/org/w3c/unicorn/util UCNProperties.java,1.6,1.7

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 20 Mar 2010 16:49:28 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Nt1rc-0007Wd-EM@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util
In directory hutz:/tmp/cvs-serv28913/src/org/w3c/unicorn/util

Modified Files:
	UCNProperties.java 
Log Message:
KeySet() now returns an ordered Set of keys

Index: UCNProperties.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/UCNProperties.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- UCNProperties.java	13 Oct 2009 15:08:56 -0000	1.6
+++ UCNProperties.java	20 Mar 2010 16:49:26 -0000	1.7
@@ -3,6 +3,8 @@
 import java.util.Collections;
 import java.util.Enumeration;
 import java.util.Properties;
+import java.util.Set;
+import java.util.TreeSet;
 import java.util.Vector;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
@@ -62,6 +64,11 @@
 	}
 	
 	@Override
+	public Set<Object> keySet() {
+		return new TreeSet<Object>(super.keySet());
+	}
+
+	@Override
 	public String toString() {
 		String result = "";
 		for(Object key : this.keySet()) {
Received on Saturday, 20 March 2010 16:49:29 GMT

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