Skip to content

Annotate DefaultCookieSerializer.setCookiePath as @Nullable - #3884

Open
zanarellidev wants to merge 1 commit into
spring-projects:mainfrom
zanarellidev:fix/nullable-cookiepath
Open

Annotate DefaultCookieSerializer.setCookiePath as @Nullable#3884
zanarellidev wants to merge 1 commit into
spring-projects:mainfrom
zanarellidev:fix/nullable-cookiepath

Conversation

@zanarellidev

Copy link
Copy Markdown

Summary

DefaultCookieSerializer.setCookiePath(String) was missing @Nullable even though the field is @Nullable and the javadoc documents null as valid. Aligns with setSameSite(@Nullable String).

Fixes #3883

Test plan

  • ./gradlew :spring-session-core:test --tests DefaultCookieSerializerTests (existing coverage of setCookiePath(null))

Made with Cursor

The cookiePath field and javadoc already allow null (fall back to the
request context path). setSameSite already has @nullable; setCookiePath
was missing it.

Closes spring-projectsgh-3883

Signed-off-by: zanarelli <zanarelli.dev@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DefaultCookieSerializer.setCookiePath missing @Nullable on cookiePath parameter

2 participants