Kaydet (Commit) fb4b59f9 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

cid#1398822: java.util.Properties.getProperty already returns String

Change-Id: I056bffbdd0e3280bfbcfbb82aff73fb5bab8a0b7
üst 7cfbe5ad
...@@ -55,11 +55,11 @@ public class CfgParser ...@@ -55,11 +55,11 @@ public class CfgParser
while (cfgEnum.hasMoreElements()) while (cfgEnum.hasMoreElements())
{ {
String pName = (String) cfgEnum.nextElement(); 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); param.put(pName.trim(), pValue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment