diff options
author | Robert Antoni Buj i Gelonch <robert.buj@gmail.com> | 2014-10-11 17:08:23 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-19 10:10:59 +0000 |
commit | a8e723ed3eed44a85714abf1cb04b74178d2424f (patch) | |
tree | 7c7ac79e1a2420d8446c0f847cd643dd7db19cd5 /qadevOOo/runner/org/openoffice | |
parent | ddac8522821ae288d4ce1533f9ebe8daf9e2d935 (diff) |
runner: Iterate over each Entry in a Map
Change-Id: I48de54ea88e7fd9f2d903c172eb2b6e1a5b73edd
Reviewed-on: https://gerrit.libreoffice.org/11918
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'qadevOOo/runner/org/openoffice')
-rw-r--r-- | qadevOOo/runner/org/openoffice/Runner.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qadevOOo/runner/org/openoffice/Runner.java b/qadevOOo/runner/org/openoffice/Runner.java index d833a4fb56e1..ff1bff4109b5 100644 --- a/qadevOOo/runner/org/openoffice/Runner.java +++ b/qadevOOo/runner/org/openoffice/Runner.java @@ -22,6 +22,7 @@ import helper.ClParser; import java.util.Enumeration; import java.util.Iterator; +import java.util.Map; import java.util.Properties; import java.util.StringTokenizer; @@ -116,13 +117,12 @@ public class Runner bEmergencyStop |= checkPathVariable("sun.boot.class.path", sDelim); // ----- check all TestParameters ----- - Iterator<String> aIter = _aParams.keySet().iterator(); - while (aIter.hasNext()) + for (Map.Entry<String, Object> entry : _aParams.entrySet()) { - String sKey = aIter.next(); - if (_aParams.get(sKey) instanceof String) + String sKey = entry.getKey(); + if (entry.getValue() instanceof String) { - String sValue = (String) _aParams.get(sKey); + String sValue = (String) entry.getValue(); if (checkVariableForCygwin(sValue)) { |