Skip to content

Commit

Permalink
fix: some chars are incompatible with dot language
Browse files Browse the repository at this point in the history
  • Loading branch information
gaopeng71 committed Aug 22, 2023
1 parent dc46936 commit 20e637a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,14 @@ private String displayGenericTypes() {
}

public String dotLabel() {
String javadoc = fromJavadoc.replaceAll("@", "")
.replaceAll("\"", "");
String displayGenericTypes = displayGenericTypes();
if (displayGenericTypes.isEmpty()) {
return fromJavadoc;
return javadoc;
}

return fromJavadoc + " <" + displayGenericTypes + ">";
return javadoc + " <" + displayGenericTypes + ">";
}

@Override
Expand Down

0 comments on commit 20e637a

Please sign in to comment.