- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Sat, 20 Mar 2010 16:49:28 +0000
- To: www-validator-cvs@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 UTC