Skip to content

Commit 4720a0e

Browse files
committed
rework rendering the list of authors
1 parent 4a8f350 commit 4720a0e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

components/sbm-recipes-boot-upgrade/src/main/java/org/springframework/sbm/boot/upgrade_27_30/report/SpringBootUpgradeReportSection.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,8 @@ private void renderGitHubInfo(StringBuilder sb) {
209209
if(contributors != null) {
210210
List<Author> authors = getAuthors();
211211
sb.append("Contributors: ");
212-
authors.stream()
213-
.forEach(a -> {
214-
sb.append("https://github.com/").append(a.getHandle()).append("[@").append(a.getHandle()).append("^, role=\"ext-link\"]");
215-
});
216-
sb.append(ls);
212+
String authorsString = authors.stream().map(a -> "https://github.com/" + a.getHandle() + "[@" + a.getHandle() + "^, role=\"ext-link\"]").collect(Collectors.joining(", "));
213+
sb.append(authorsString).append(ls);
217214
}
218215
}
219216

0 commit comments

Comments
 (0)