Skip to content

Doc : Resolve #4570 explain more on ObjectMapper.canDeserialize()/ObjectMapper.canSerialize() deprecation #4826

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

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

JooHyukKim
Copy link
Member

@JooHyukKim JooHyukKim commented Dec 3, 2024

resolves #4570

Let's tell users something more than "use discouraged".

@JooHyukKim JooHyukKim changed the title Doc : Resolve #4570 explain more on ObjectMapper.canDeserialize()/ObjectMapper.canSerialize() deprecation Doc : Resolve #4570 explain more on ObjectMapper.canDeserialize()/ObjectMapper.canSerialize() deprecation Dec 3, 2024
@@ -3637,6 +3637,8 @@ public <T extends JsonNode> T valueToTree(Object fromValue)
* serializable)
*
* @deprecated Since 2.18 use discouraged; method to be removed from Jackson 3.0
* It is recommended to try directly testing de/serialization using actual JSON inputs and outputs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of "de/serialization" let's spell out either "serialization" or "deserialization" depending on which one method relates to (so "serialization" in this case).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, let's do that! (done)

@cowtowncoder cowtowncoder merged commit daf3e37 into FasterXML:2.18 Dec 4, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants