Skip to content

Commit 20e637a

Browse files
author
gaopeng71
committed
fix: some chars are incompatible with dot language
1 parent dc46936 commit 20e637a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dddplus-visualization/src/main/java/io/github/dddplus/ast/report/ClassHierarchyReport.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,14 @@ private String displayGenericTypes() {
8181
}
8282

8383
public String dotLabel() {
84+
String javadoc = fromJavadoc.replaceAll("@", "")
85+
.replaceAll("\"", "");
8486
String displayGenericTypes = displayGenericTypes();
8587
if (displayGenericTypes.isEmpty()) {
86-
return fromJavadoc;
88+
return javadoc;
8789
}
8890

89-
return fromJavadoc + " <" + displayGenericTypes + ">";
91+
return javadoc + " <" + displayGenericTypes + ">";
9092
}
9193

9294
@Override

0 commit comments

Comments
 (0)