From fc8a8d363f5a947096e8721319ca6c6d0df26f5d Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 5 Jul 2023 15:50:32 +0100 Subject: [PATCH] Polish --- .../boot/configurationmetadata/changelog/ChangelogWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-configuration-metadata-changelog-generator/src/main/java/org/springframework/boot/configurationmetadata/changelog/ChangelogWriter.java b/spring-boot-project/spring-boot-tools/spring-boot-configuration-metadata-changelog-generator/src/main/java/org/springframework/boot/configurationmetadata/changelog/ChangelogWriter.java index fd79845d0e..033d5e2097 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-configuration-metadata-changelog-generator/src/main/java/org/springframework/boot/configurationmetadata/changelog/ChangelogWriter.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-configuration-metadata-changelog-generator/src/main/java/org/springframework/boot/configurationmetadata/changelog/ChangelogWriter.java @@ -89,7 +89,7 @@ class ChangelogWriter implements AutoCloseable { private void writeDeprecated(List differences) { List rows = sortProperties(differences, Difference::newProperty).stream() .filter(this::isDeprecatedInRelease) - .collect(Collectors.toList()); + .toList(); writeTable("| Key | Replacement | Reason", rows, this::writeDeprecated); }