mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -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)
|
||||
|
@@ -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())
|
||||
{
|
||||
|
Reference in New Issue
Block a user