Skip to content

Commit 821ecb4

Browse files
committed
Update Javadoc for CookieValue
See gh-26989
1 parent 1c17305 commit 821ecb4

File tree

1 file changed

+6
-2
lines changed
  • spring-web/src/main/java/org/springframework/web/bind/annotation

1 file changed

+6
-2
lines changed

spring-web/src/main/java/org/springframework/web/bind/annotation/CookieValue.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,11 +25,15 @@
2525
import org.springframework.core.annotation.AliasFor;
2626

2727
/**
28-
* Annotation which indicates that a method parameter should be bound to an HTTP cookie.
28+
* Annotation to indicate that a method parameter is bound to an HTTP cookie.
2929
*
3030
* <p>The method parameter may be declared as type {@link javax.servlet.http.Cookie}
3131
* or as cookie value type (String, int, etc.).
3232
*
33+
* <p>Note that with spring-webmvc 5.3.x and earlier, the cookie value is URL
34+
* decoded. This will be changed in 6.0 but in the mean, applications can also
35+
* declare {@link javax.servlet.http.Cookie} to access the raw value.
36+
*
3337
* @author Juergen Hoeller
3438
* @author Sam Brannen
3539
* @since 3.0

0 commit comments

Comments
 (0)