Formatting during investigations

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@124472 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2016-03-24 17:26:20 +00:00
parent 6d9504bb1c
commit db240db28c

View File

@@ -840,9 +840,9 @@ public class DbNodeServiceImpl extends AbstractNodeServiceImpl implements Extens
@Extend(traitAPI=NodeServiceTrait.class,extensionAPI=NodeServiceExtension.class) @Extend(traitAPI=NodeServiceTrait.class,extensionAPI=NodeServiceExtension.class)
public int countChildAssocs(NodeRef nodeRef, boolean isPrimary) throws InvalidNodeRefException public int countChildAssocs(NodeRef nodeRef, boolean isPrimary) throws InvalidNodeRefException
{ {
final Pair<Long, NodeRef> nodePair = getNodePairNotNull(nodeRef); final Pair<Long, NodeRef> nodePair = getNodePairNotNull(nodeRef);
final Long nodeId = nodePair.getFirst(); final Long nodeId = nodePair.getFirst();
return nodeDAO.countChildAssocsByParent(nodeId, isPrimary); return nodeDAO.countChildAssocsByParent(nodeId, isPrimary);
} }
@Override @Override
@@ -911,7 +911,7 @@ public class DbNodeServiceImpl extends AbstractNodeServiceImpl implements Extens
{ {
logger.trace( logger.trace(
"Aspect-triggered association removal: " + "Aspect-triggered association removal: " +
"Ignoring child associations where one of the nodes is pending delete: " + childAssocPair); "Ignoring child associations where one of the nodes is pending delete: " + childAssocPair);
} }
return true; return true;
} }
@@ -1971,10 +1971,10 @@ public class DbNodeServiceImpl extends AbstractNodeServiceImpl implements Extens
@Extend(traitAPI=NodeServiceTrait.class,extensionAPI=NodeServiceExtension.class) @Extend(traitAPI=NodeServiceTrait.class,extensionAPI=NodeServiceExtension.class)
public NodeRef getChildByName(NodeRef nodeRef, QName assocTypeQName, String childName) public NodeRef getChildByName(NodeRef nodeRef, QName assocTypeQName, String childName)
{ {
ParameterCheck.mandatory("childName", childName); ParameterCheck.mandatory("childName", childName);
ParameterCheck.mandatory("nodeRef", nodeRef); ParameterCheck.mandatory("nodeRef", nodeRef);
ParameterCheck.mandatory("assocTypeQName", assocTypeQName); ParameterCheck.mandatory("assocTypeQName", assocTypeQName);
// Get the node // Get the node
Pair<Long, NodeRef> nodePair = getNodePairNotNull(nodeRef); Pair<Long, NodeRef> nodePair = getNodePairNotNull(nodeRef);
Long nodeId = nodePair.getFirst(); Long nodeId = nodePair.getFirst();