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); }