From 14db1ad6f3b4146c41d909afe06f93eff627907b Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 21 Jul 2025 17:35:08 +0100 Subject: [PATCH] Make LambdaSafe.withFilter public Fixes gh-46472 --- .../main/java/org/springframework/boot/util/LambdaSafe.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/util/LambdaSafe.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/util/LambdaSafe.java index e5156097a4e..272e580451c 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/util/LambdaSafe.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/util/LambdaSafe.java @@ -146,8 +146,9 @@ public final class LambdaSafe { * type. * @param filter the filter to use * @return this instance + * @since 3.4.8 */ - SELF withFilter(Filter filter) { + public SELF withFilter(Filter filter) { Assert.notNull(filter, "Filter must not be null"); this.filter = filter; return self();