Skip to content

introduce internal single value map handle for MultiValueMap #32853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

gdmrw
Copy link

@gdmrw gdmrw commented May 21, 2024

According to #32826 and #32832 problem description and solution proposal, I introduce 2 static methods ofMulti and ofsingle intoMultiValueMap(LinkedMultiValueMap).

Briefly, It simplifies the conversion of Map to LinkedMultiValueMap, enhancing code simplicity and consistency while maintaining backward compatibility.

Now you can use LinkedMultiValueMap.ofSingle(map) to quickly transfer the normal single value map into a multivalue map which match the FormHttpMessageConverter input requirement.


The toMulti method seems useless because it will not need any work if you build a multivalue mao by default.
These are a bit of my personal thinking and not sure if it is true.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label May 21, 2024
@snicoll
Copy link
Member

snicoll commented May 21, 2024

@gdmrw thanks for the PR but both the issues you've referenced are already assigned to someone so they're working on it. You can share your thoughts on the issue but code change can't be accepted due to the assignment.

@snicoll snicoll closed this May 21, 2024
@snicoll snicoll added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants