mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -129,14 +129,11 @@ public class RmActionPost extends DeclarativeWebScript
|
|||||||
Object nextValue = paramsObj.get(nextKeyString);
|
Object nextValue = paramsObj.get(nextKeyString);
|
||||||
|
|
||||||
// Check for date values
|
// 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");
|
String dateStringValue = ((JSONObject)nextValue).getString("iso8601");
|
||||||
nextValue = ISO8601DateFormat.parse(dateStringValue);
|
nextValue = ISO8601DateFormat.parse(dateStringValue);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
actionParams.put(nextKeyString, (Serializable)nextValue);
|
actionParams.put(nextKeyString, (Serializable)nextValue);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user