mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fixed critical issues (Dodgy - instanceof will always return true) reported in Sonar
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@89714 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -557,17 +557,9 @@ public class RelationshipServiceImpl extends RecordsManagementAdminBase implemen
|
|||||||
{
|
{
|
||||||
type = RelationshipType.PARENTCHILD;
|
type = RelationshipType.PARENTCHILD;
|
||||||
}
|
}
|
||||||
else if (associationDefinition instanceof AssociationDefinition)
|
|
||||||
{
|
|
||||||
type = RelationshipType.BIDIRECTIONAL;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
StringBuilder sb = new StringBuilder();
|
type = RelationshipType.BIDIRECTIONAL;
|
||||||
sb.append("Unsupported association definition: '")
|
|
||||||
.append(associationDefinition.getName().getLocalName())
|
|
||||||
.append("'.");
|
|
||||||
throw new AlfrescoRuntimeException(sb.toString());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return type;
|
return type;
|
||||||
|
Reference in New Issue
Block a user