Skip to content

Deprecate setDisallowedFields in DataBinder for removal#36816

Closed
jhan0121 wants to merge 1 commit into
spring-projects:mainfrom
jhan0121:deprecate-databinder-disallowedfields
Closed

Deprecate setDisallowedFields in DataBinder for removal#36816
jhan0121 wants to merge 1 commit into
spring-projects:mainfrom
jhan0121:deprecate-databinder-disallowedfields

Conversation

@jhan0121
Copy link
Copy Markdown
Contributor

This PR deprecates setDisallowedFields() and getDisallowedFields() in DataBinder as discussed in #36802.

Changes

  • Deprecate setDisallowedFields() and getDisallowedFields() in DataBinder with @Deprecated(since = "7.1", forRemoval = true)
  • Remove the reference to disallowedFields as an alternative in setAllowedFields() Javadoc
  • Update reference documentation to reflect the deprecated status
  • Add @SuppressWarnings("removal") to affected test methods

Closes gh-36802

Deprecate `setDisallowedFields()` and `getDisallowedFields()` in
favor of the safer `setAllowedFields()` as an explicit opt-in.

Closes spring-projectsgh-36802
Signed-off-by: Juhwan Lee <jhan0121@gmail.com>
@bclozel
Copy link
Copy Markdown
Member

bclozel commented May 20, 2026

Thanks for the help, but the issue is already assigned.

@bclozel bclozel closed this May 20, 2026
@bclozel bclozel added the status: declined A suggestion or change that we don't feel we should currently apply label May 20, 2026
@jhan0121 jhan0121 deleted the deprecate-databinder-disallowedfields branch May 20, 2026 09:53
@jhan0121
Copy link
Copy Markdown
Contributor Author

Thanks for the quick response! I missed that the issue was already assigned. I will make sure to check the assignment status more carefully next time.

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.

Deprecate disallowedFields property of DataBinder

2 participants