Fixed minor issues reported by sonar (Collapsible If Statements)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@64833 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2014-03-19 00:32:43 +00:00
parent e26257d9da
commit b10cf6d159

View File

@@ -129,13 +129,10 @@ public class RmActionPost extends DeclarativeWebScript
Object nextValue = paramsObj.get(nextKeyString);
// Check for date values
if (nextValue instanceof JSONObject)
if ((nextValue instanceof JSONObject) && ((JSONObject)nextValue).has("iso8601"))
{
if (((JSONObject)nextValue).has("iso8601"))
{
String dateStringValue = ((JSONObject)nextValue).getString("iso8601");
nextValue = ISO8601DateFormat.parse(dateStringValue);
}
String dateStringValue = ((JSONObject)nextValue).getString("iso8601");
nextValue = ISO8601DateFormat.parse(dateStringValue);
}
actionParams.put(nextKeyString, (Serializable)nextValue);