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 (Use Index Of Char)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@63813 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1321,7 +1321,7 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
|
||||
// we need to strip off the first part of the path
|
||||
String path = entry.getPath();
|
||||
String displayPath = path;
|
||||
int idx = path.indexOf("/", 1);
|
||||
int idx = path.indexOf('/', 1);
|
||||
if (idx != -1)
|
||||
{
|
||||
displayPath = "/File Plan" + path.substring(idx);
|
||||
|
@@ -897,7 +897,7 @@ public class RecordServiceImpl extends BaseBehaviourBean
|
||||
String name = (String)nodeService.getProperty(document, ContentModel.PROP_NAME);
|
||||
|
||||
// rename the record
|
||||
int dotIndex = name.lastIndexOf(".");
|
||||
int dotIndex = name.lastIndexOf('.');
|
||||
String prefix = name;
|
||||
String postfix = "";
|
||||
if (dotIndex != -1)
|
||||
|
Reference in New Issue
Block a user