From 083b49030efbe66581ee524451f9049299ed8067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Tue, 13 May 2025 16:28:38 +0200 Subject: [PATCH] Remove outdated Session's Cookie override Closes gh-45523 --- .../boot/web/servlet/server/Session.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/server/Session.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/server/Session.java index 40145e5f0e..77f859cd19 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/server/Session.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/server/Session.java @@ -24,6 +24,7 @@ import java.util.Set; import org.springframework.boot.context.properties.ConfigurationPropertiesSource; import org.springframework.boot.context.properties.NestedConfigurationProperty; import org.springframework.boot.convert.DurationUnit; +import org.springframework.boot.web.server.Cookie; /** * Session properties. @@ -113,15 +114,6 @@ public class Session { return this.sessionStoreDirectory; } - /** - * Session cookie properties. This class is provided only for back-compatibility - * reasons, consider using {@link org.springframework.boot.web.server.Cookie} whenever - * possible. - */ - public static class Cookie extends org.springframework.boot.web.server.Cookie { - - } - /** * Available session tracking modes (mirrors * {@link jakarta.servlet.SessionTrackingMode}).