Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)

121204 gcornwell: Very minor formatting and test fixes spotted during verification of various stories.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126400 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jamal Kaabi-Mofrad
2016-05-10 10:43:59 +00:00
parent 8a49f4efae
commit 381c83facf
2 changed files with 7 additions and 5 deletions

View File

@@ -470,8 +470,8 @@ public class NodesImpl implements Nodes
}
}
private NodeRef getParentNodeRef(final NodeRef nodeRef) {
private NodeRef getParentNodeRef(final NodeRef nodeRef)
{
if (repositoryHelper.getCompanyHome().equals(nodeRef))
{
return null; // note: does not make sense to return parent above C/H
@@ -693,7 +693,7 @@ public class NodesImpl implements Nodes
}
String pathStr = null;
if(pathElements.size() > 0)
if (pathElements.size() > 0)
{
StringBuilder sb = new StringBuilder(120);
for (PathInfo.ElementInfo e : pathElements)
@@ -1585,7 +1585,8 @@ public class NodesImpl implements Nodes
List<QName> result = new ArrayList<>(qnameStrList.size());
for (String str : qnameStrList)
{
if (str.startsWith(PREFIX)) {
if (str.startsWith(PREFIX))
{
str = str.substring(PREFIX.length());
}