Skip to content

Remove unchecked cast in DispatcherServlet - #37293

Merged
bclozel merged 1 commit into
spring-projects:mainfrom
cookie-meringue:remove-unchecked-cast-in-dispatcher-servlet
Sep 18, 2026
Merged

bclozel merged 1 commit into
spring-projects:mainfrom
cookie-meringue:remove-unchecked-cast-in-dispatcher-servlet

Conversation

@cookie-meringue

Copy link
Copy Markdown
Contributor

Summary

The private attribute restoration method declares its snapshot parameter as Map<?, ?>, although its only caller passes a Map<String, Object>. Match the parameter type to the caller and remove the unnecessary unchecked cast and warning suppression.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Sep 18, 2026
@bclozel bclozel self-assigned this Sep 18, 2026
Match the attribute snapshot parameter type to its sole caller.
This removes the unchecked cast and warning suppression.

Signed-off-by: cookie-meringue <daehyeon3351@gmail.com>
@bclozel
bclozel force-pushed the remove-unchecked-cast-in-dispatcher-servlet branch from 83ffad6 to 3d023b3 Compare September 18, 2026 12:44
@bclozel
bclozel merged commit 3d023b3 into spring-projects:main Sep 18, 2026
2 checks passed
@bclozel bclozel added in: web Issues in web modules (web, webmvc, webflux, websocket) type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Sep 18, 2026
@bclozel bclozel added this to the 7.1.0-M2 milestone Sep 18, 2026
@bclozel

bclozel commented Sep 18, 2026

Copy link
Copy Markdown
Member

Thanks @cookie-meringue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: web Issues in web modules (web, webmvc, webflux, websocket) type: task A general task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants