Skip to content

Commit cde92f5

Browse files
vpavicrstoyanchev
authored andcommitted
Deprecate CookieGenerator
This commit deprecates CookieGenerator in favor of the more modern alternative, ResponseCookie. See gh-28870
1 parent e6c2d44 commit cde92f5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

spring-web/src/main/java/org/springframework/web/util/CookieGenerator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
* @see #addCookie
3838
* @see #removeCookie
3939
* @see org.springframework.web.servlet.theme.CookieThemeResolver
40+
* @deprecated since 6.0 in favor of {@link org.springframework.http.ResponseCookie}
4041
*/
42+
@Deprecated
4143
public class CookieGenerator {
4244

4345
/**

spring-webmvc/src/main/java/org/springframework/web/servlet/i18n/CookieLocaleResolver.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
* @see #setDefaultLocale
6060
* @see #setDefaultTimeZone
6161
*/
62+
@SuppressWarnings("deprecation")
6263
public class CookieLocaleResolver extends AbstractLocaleContextResolver {
6364

6465
/**

0 commit comments

Comments
 (0)