Fixed major issues reported by sonar (Simplify Boolean Expression)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@64828 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2014-03-18 23:50:41 +00:00
parent bcfb1ba174
commit dca3a954ac
2 changed files with 2 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ public class DeclareRecordAction extends RMActionExecuterAbstractBase
}
}
if (result != false)
if (result)
{
Set<QName> aspects = this.nodeService.getAspects(nodeRef);
for (QName aspect : aspects)

View File

@@ -135,7 +135,7 @@ public class RMv21BehaviorScriptsPatch extends RMv21PatchComponent implements Be
// Move files from RM Scripts folder to RM Behavior Scripts folder.
List<FileInfo> oldBehaviorScripts = fileFolderService.listFiles(OLD_BEHAVIOR_SCRIPTS_FOLDER);
if (oldBehaviorScripts != null && oldBehaviorScripts.isEmpty() != true)
if (oldBehaviorScripts != null && !oldBehaviorScripts.isEmpty())
{
if (logger.isDebugEnabled())
{