summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/helper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-06-27 15:20:39 +0200
committerMichael Stahl <mstahl@redhat.com>2012-06-29 22:03:00 +0200
commit33ec740d1438c3dddf8e1974757ed05bb76425ca (patch)
tree37868edd825fe8f3777a077549e61f1379da7cd3 /qadevOOo/runner/helper
parent10dd7e74c551f3e252405ba0f80a2f143d9129e5 (diff)
Java5 update - Convert Hashtable to HashMap
Change-Id: Ibb568e841ff574d5232429ce0ba99e421ed7f05c
Diffstat (limited to 'qadevOOo/runner/helper')
-rw-r--r--qadevOOo/runner/helper/CfgParser.java18
1 files changed, 10 insertions, 8 deletions
diff --git a/qadevOOo/runner/helper/CfgParser.java b/qadevOOo/runner/helper/CfgParser.java
index 27a72e55313b..880bf737e2d5 100644
--- a/qadevOOo/runner/helper/CfgParser.java
+++ b/qadevOOo/runner/helper/CfgParser.java
@@ -17,10 +17,12 @@
*/
package helper;
-import lib.TestParameters;
-import java.util.Properties;
-import java.util.Enumeration;
import java.io.FileInputStream;
+import java.util.Enumeration;
+import java.util.Iterator;
+import java.util.Properties;
+
+import lib.TestParameters;
import util.PropertyName;
/**
@@ -94,18 +96,18 @@ public class CfgParser
debug = param.DebugIsActive;
- //check for platform dependend parameters
+ //check for platform dependent parameters
//this would have a $OperatingSystem as prefix
String os = (String) param.get(PropertyName.OPERATING_SYSTEM);
if (os != null && os.length() > 1)
{
- //found something that could be a prefex
+ //found something that could be a prefix
//check all parameters for this
- Enumeration keys = param.keys();
- while (keys.hasMoreElements())
+ Iterator keys = param.keySet().iterator();
+ while (keys.hasNext())
{
- String key = (String) keys.nextElement();
+ String key = (String) keys.next();
if (key.startsWith(os))
{
Object oldValue = param.get(key);