mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed critical issues reported by sonar (Empty If Stmt)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@63495 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -102,11 +102,11 @@ public class CompleteEventAction extends RMActionExecuterAbstractBase
|
||||
updateEventEligible(da);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
// else
|
||||
// {
|
||||
// RM-695: Commenting error handling out. If the current disposition stage does not define the event being completed nothing should happen.
|
||||
// throw new AlfrescoRuntimeException(I18NUtil.getMessage(MSG_EVENT_NO_DISP_LC, eventName));
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -352,6 +352,7 @@ public class RMCaveatConfigComponentImpl implements ContentServicePolicies.OnCon
|
||||
Map<String, List<String>> caveatMap = (Map<String, List<String>>)conEntry.getValue();
|
||||
|
||||
List<String> allowedValues = null;
|
||||
@SuppressWarnings("unused")
|
||||
boolean found = false;
|
||||
|
||||
for (QName propertyName : props)
|
||||
@@ -382,10 +383,10 @@ public class RMCaveatConfigComponentImpl implements ContentServicePolicies.OnCon
|
||||
}
|
||||
}
|
||||
|
||||
if (! found)
|
||||
{
|
||||
//if (! found)
|
||||
//{
|
||||
//throw new AlfrescoRuntimeException("Constraint does not exist (or is not used): "+conStr);
|
||||
}
|
||||
//}
|
||||
|
||||
if (allowedValues != null)
|
||||
{
|
||||
@@ -922,11 +923,7 @@ public class RMCaveatConfigComponentImpl implements ContentServicePolicies.OnCon
|
||||
readLock.lock();
|
||||
|
||||
members = caveatConfig.get(listName);
|
||||
if(members == null)
|
||||
{
|
||||
// list does not exist
|
||||
}
|
||||
else
|
||||
if (members != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -934,11 +931,7 @@ public class RMCaveatConfigComponentImpl implements ContentServicePolicies.OnCon
|
||||
writeLock.lock();
|
||||
// check again
|
||||
members = caveatConfig.get(listName);
|
||||
if(members == null)
|
||||
{
|
||||
// list does not exist
|
||||
}
|
||||
else
|
||||
if (members != null)
|
||||
{
|
||||
// authorities contains authority, values[]
|
||||
// pivot contains value, members[]
|
||||
@@ -964,7 +957,6 @@ public class RMCaveatConfigComponentImpl implements ContentServicePolicies.OnCon
|
||||
readLock.lock();
|
||||
writeLock.unlock();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
@@ -603,12 +603,8 @@ public class FilePlanServiceImpl extends ServiceBaseImpl
|
||||
}
|
||||
// Prepend it to the path
|
||||
nodeRefPath.addFirst(nodeRef);
|
||||
// Are we at the root
|
||||
if (isFilePlan(nodeRef) == true)
|
||||
{
|
||||
// We're done
|
||||
}
|
||||
else
|
||||
// Are we not at the root
|
||||
if (isFilePlan(nodeRef) == false)
|
||||
{
|
||||
ChildAssociationRef assocRef = nodeService.getPrimaryParent(nodeRef);
|
||||
if (assocRef == null)
|
||||
|
Reference in New Issue
Block a user