Skip to content

Commit 0ef13d0

Browse files
zanarellidevjzheaux
authored andcommitted
Annotate DefaultCookieSerializer.setCookiePath as @nullable
The cookiePath field and javadoc already allow null (fall back to the request context path). setSameSite already has @nullable; setCookiePath was missing it. Closes gh-3883 Signed-off-by: zanarelli <zanarelli.dev@gmail.com>
1 parent 0471b0d commit 0ef13d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spring-session-core/src/main/java/org/springframework/session/web/http/DefaultCookieSerializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ private boolean isSecureCookie(HttpServletRequest request) {
296296
* @param cookiePath the path of the Cookie. If null, the default of the context path
297297
* will be used.
298298
*/
299-
public void setCookiePath(String cookiePath) {
299+
public void setCookiePath(@Nullable String cookiePath) {
300300
this.cookiePath = cookiePath;
301301
}
302302

0 commit comments

Comments
 (0)