[Libreoffice-commits] core.git: qadevOOo/runner
Stephan Bergmann
sbergman at redhat.com
Tue Jan 17 11:29:42 UTC 2017
qadevOOo/runner/helper/CfgParser.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit fb4b59f9370167696d1a67beb16b593ba86971a8
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Jan 17 12:29:15 2017 +0100
cid#1398822: java.util.Properties.getProperty already returns String
Change-Id: I056bffbdd0e3280bfbcfbb82aff73fb5bab8a0b7
diff --git a/qadevOOo/runner/helper/CfgParser.java b/qadevOOo/runner/helper/CfgParser.java
index 59f0d27..ea9e7b5 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);
More information about the Libreoffice-commits
mailing list