Skip to content

Fix SecurityContextLogoutHandler.logout @param response Javadoc (cannot be null)#18795

Merged
rwinch merged 1 commit intospring-projects:mainfrom
rwinch:gh-18357-securitycontextlogouthandler-javadoc
Feb 24, 2026
Merged

Fix SecurityContextLogoutHandler.logout @param response Javadoc (cannot be null)#18795
rwinch merged 1 commit intospring-projects:mainfrom
rwinch:gh-18357-securitycontextlogouthandler-javadoc

Conversation

@rwinch
Copy link
Member

@rwinch rwinch commented Feb 24, 2026

The Javadoc needs updating since the LogoutHandler interface contract requires @nonnull HttpServletResponse in order to support writing cookies to the response. Since the implementation delegates to an instance of LogoutHandler which requires a non-null response, the parameter passed in must also be non-null.

Closes gh-18357

@rwinch rwinch self-assigned this Feb 24, 2026
@rwinch rwinch enabled auto-merge (rebase) February 24, 2026 15:55
@rwinch rwinch added in: docs An issue in Documentation or samples in: web An issue in web modules (web, webmvc) type: bug A general bug labels Feb 24, 2026
@rwinch rwinch added this to the 7.1.0-M3 milestone Feb 24, 2026
@rwinch rwinch merged commit d31ca7a into spring-projects:main Feb 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: docs An issue in Documentation or samples in: web An issue in web modules (web, webmvc) type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix SecurityContextLogoutHandler.logout @param response Javadoc (cannot be null)

1 participant