1
0
mirror of synced 2026-05-22 18:53:15 +00:00

feat: generate @since tags for methods (#1145)

This commit is contained in:
Yury Semikhatsky
2022-12-21 10:15:51 -08:00
committed by GitHub
parent 45f81c0659
commit d9fea34baa
37 changed files with 1303 additions and 0 deletions
@@ -779,6 +779,14 @@ class Method extends Element {
String returnComment = jsonElement.getAsJsonObject().get("returnComment").getAsString();
sections.add("@return " + returnComment);
}
if (jsonElement.getAsJsonObject().has("since")) {
if (!hasBlankLine) {
sections.add("");
hasBlankLine = true;
}
String since = jsonElement.getAsJsonObject().get("since").getAsString();
sections.add("@since " + since);
}
writeJavadoc(output, offset, String.join("\n", sections));
}
}