mirror of https://github.com/dspinellis/UMLGraph
Trivial simplification.
This commit is contained in:
parent
fc1b199daf
commit
141c8a9353
|
|
@ -717,17 +717,6 @@ class ClassGraph {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints associations recovered from the fields of a class. An association is inferred only
|
||||
* if another relation between the two classes is not already in the graph.
|
||||
* @param classes
|
||||
*/
|
||||
public void printInferredRelations(ClassDoc[] classes) {
|
||||
for (ClassDoc c : classes) {
|
||||
printInferredRelations(c);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints associations recovered from the fields of a class. An association is inferred only
|
||||
* if another relation between the two classes is not already in the graph.
|
||||
|
|
@ -766,18 +755,6 @@ class ClassGraph {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints dependencies recovered from the methods of a class. A
|
||||
* dependency is inferred only if another relation between the two
|
||||
* classes is not already in the graph.
|
||||
* @param classes
|
||||
*/
|
||||
public void printInferredDependencies(ClassDoc[] classes) {
|
||||
for (ClassDoc c : classes) {
|
||||
printInferredDependencies(c);
|
||||
}
|
||||
}
|
||||
|
||||
/** Returns an array representing the imported classes of c.
|
||||
* Disables the deprecation warning, which is output, because the
|
||||
* imported classed are an implementation detail.
|
||||
|
|
|
|||
|
|
@ -113,14 +113,16 @@ public class UmlGraph {
|
|||
|
||||
ClassGraph c = new ClassGraph(root, op, contextDoc);
|
||||
c.prologue();
|
||||
for (int i = 0; i < classes.length; i++)
|
||||
c.printClass(classes[i], true);
|
||||
for (int i = 0; i < classes.length; i++)
|
||||
c.printRelations(classes[i]);
|
||||
for (ClassDoc cd : classes)
|
||||
c.printClass(cd, true);
|
||||
for (ClassDoc cd : classes)
|
||||
c.printRelations(cd);
|
||||
if(opt.inferRelationships)
|
||||
c.printInferredRelations(classes);
|
||||
for (ClassDoc cd : classes)
|
||||
c.printInferredRelations(cd);
|
||||
if(opt.inferDependencies)
|
||||
c.printInferredDependencies(classes);
|
||||
for (ClassDoc cd : classes)
|
||||
c.printInferredDependencies(cd);
|
||||
|
||||
c.printExtraClasses(root);
|
||||
c.epilogue();
|
||||
|
|
|
|||
Loading…
Reference in New Issue