check if source and dest are not already linked

This commit is contained in:
Daniel TISCHER 2014-02-09 11:18:57 +01:00
parent 3bdff0e55b
commit a463b627fb
1 changed files with 6 additions and 2 deletions

View File

@ -841,8 +841,12 @@ class ClassGraph {
if (hidden(fri.cd))
continue;
String destAdornment = fri.multiple ? "*" : "";
relation(opt, opt.inferRelationshipType, c, fri.cd, "", "", destAdornment);
// if source and dest are not already linked, add a dependency
RelationPattern rp = getClassInfo(c.toString()).getRelation(fri.cd.toString());
if (rp == null) {
String destAdornment = fri.multiple ? "*" : "";
relation(opt, opt.inferRelationshipType, c, fri.cd, "", "", destAdornment);
}
}
}