diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-17 12:29:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-17 12:29:15 +0100 |
commit | fb4b59f9370167696d1a67beb16b593ba86971a8 (patch) | |
tree | 3c83f6a5ae3065411d728ab9524312f9c82f151b /qadevOOo | |
parent | 7cfbe5ad4fa351228c4764d9a7231024a97212c4 (diff) |
cid#1398822: java.util.Properties.getProperty already returns String
Change-Id: I056bffbdd0e3280bfbcfbb82aff73fb5bab8a0b7
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/runner/helper/CfgParser.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qadevOOo/runner/helper/CfgParser.java b/qadevOOo/runner/helper/CfgParser.java index 59f0d2745fc3..ea9e7b5c08c5 100644 --- a/qadevOOo/runner/helper/CfgParser.java +++ b/qadevOOo/runner/helper/CfgParser.java @@ -55,11 +55,11 @@ public class CfgParser while (cfgEnum.hasMoreElements()) { String pName = (String) cfgEnum.nextElement(); - Object pValue = cfg.getProperty(pName); + String pValue = cfg.getProperty(pName); - if (pValue instanceof String) + if (pValue != null) { - pValue = ((String) pValue).trim(); + pValue = pValue.trim(); } param.put(pName.trim(), pValue); |