Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove call to stringPropertyNames() to make compilable under Java 1.…

…5. closes #5
  • Loading branch information...
commit 8a3ac3debd96b59b62b3026ca91dc56855345269 1 parent 537c022
@brianfrankcooper brianfrankcooper authored
Showing with 10 additions and 4 deletions.
  1. +10 −4 src/com/yahoo/ycsb/Client.java
View
14 src/com/yahoo/ycsb/Client.java
@@ -478,9 +478,12 @@ else if (args[argindex].compareTo("-P")==0)
System.exit(0);
}
- for (String prop : myfileprops.stringPropertyNames())
+ //Issue #5 - remove call to stringPropertyNames to make compilable under Java 1.5
+ for (Enumeration e=myfileprops.propertyNames(); e.hasMoreElements(); )
{
- fileprops.setProperty(prop,myfileprops.getProperty(prop));
+ String prop=(String)e.nextElement();
+
+ fileprops.setProperty(prop,myfileprops.getProperty(prop));
}
}
@@ -529,9 +532,12 @@ else if (args[argindex].compareTo("-p")==0)
//overwrite file properties with properties from the command line
- for (String prop : props.stringPropertyNames())
+ //Issue #5 - remove call to stringPropertyNames to make compilable under Java 1.5
+ for (Enumeration e=props.propertyNames(); e.hasMoreElements(); )
{
- fileprops.setProperty(prop,props.getProperty(prop));
+ String prop=(String)e.nextElement();
+
+ fileprops.setProperty(prop,props.getProperty(prop));
}
props=fileprops;
Please sign in to comment.
Something went wrong with that request. Please try again.