[embjopr-commits] EMBJOPR SVN: r137 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit.

embjopr-commits at lists.jboss.org embjopr-commits at lists.jboss.org
Wed Feb 4 15:55:31 EST 2009


Author: ozizka at redhat.com
Date: 2009-02-04 15:55:30 -0500 (Wed, 04 Feb 2009)
New Revision: 137

Modified:
   trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/DebugUtils.java
Log:
listSystemProperties() - removing Properties.stringPropertyNames() call - avail. in JDK 1.6

Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/DebugUtils.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/DebugUtils.java	2009-02-04 20:27:47 UTC (rev 136)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/DebugUtils.java	2009-02-04 20:55:30 UTC (rev 137)
@@ -48,8 +48,9 @@
 		Properties properties = System.getProperties();
 
 		SortedMap<String, String> map = new TreeMap<String, String>();
-		for ( String property : properties.stringPropertyNames()) {
-			map.put( (String)property, properties.getProperty(property) );
+		// properties.stringPropertyNames() since 1.6
+		for ( Object property : properties.keySet()) {
+			map.put( (String)property, properties.getProperty((String)property) );
 		}
 
 		for ( String property : map.keySet() ) {




More information about the embjopr-commits mailing list