Skip to content

Commit

Permalink
Fix #23
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarsotovalero committed Nov 30, 2020
1 parent c519110 commit 7a528eb
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ public void write(JsonWriter jsonWriter, Node node) throws IOException {
dependencyAnalyzer.getArtifactClassesMap().get(node.getArtifactCanonicalForm()).getUsedTypes().toString() :
null)

.name("usageRatio")
.jsonValue(dependencyAnalyzer.getArtifactClassesMap().containsKey(node.getArtifactCanonicalForm()) ?
Double.toString((double) dependencyAnalyzer.getArtifactClassesMap().get(node.getArtifactCanonicalForm()).getUsedTypes().size() /
dependencyAnalyzer.getArtifactClassesMap().get(node.getArtifactCanonicalForm()).getAllTypes().size()) :
null)

.name("children")
.beginArray();

Expand Down

0 comments on commit 7a528eb

Please sign in to comment.