mirror of https://github.com/dspinellis/UMLGraph
Don't infer dependencies from fields if we already inferred relationships (basically to avoid having dependencies on the collection containers that were not included in the relationships)
This commit is contained in:
parent
561b50c0f2
commit
6bbf7d2f71
|
|
@ -734,8 +734,10 @@ class ClassGraph {
|
|||
}
|
||||
}
|
||||
// and the field types
|
||||
for (FieldDoc field : c.fields(false)) {
|
||||
types.add(field.type());
|
||||
if (!opt.inferRelationships) {
|
||||
for (FieldDoc field : c.fields(false)) {
|
||||
types.add(field.type());
|
||||
}
|
||||
}
|
||||
// see if there are some type parameters
|
||||
if (c.asParameterizedType() != null) {
|
||||
|
|
|
|||
|
|
@ -734,8 +734,10 @@ class ClassGraph {
|
|||
}
|
||||
}
|
||||
// and the field types
|
||||
for (FieldDoc field : c.fields(false)) {
|
||||
types.add(field.type());
|
||||
if (!opt.inferRelationships) {
|
||||
for (FieldDoc field : c.fields(false)) {
|
||||
types.add(field.type());
|
||||
}
|
||||
}
|
||||
// see if there are some type parameters
|
||||
if (c.asParameterizedType() != null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue