Skip to content
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

Remove final on method BeanSerializer.serialize() #4483

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

mluckam
Copy link
Contributor

@mluckam mluckam commented Apr 17, 2024

The method BeanDeserializer.deserialize is not final. This allows for modification to the deserialization process generally via proxy or subclass, ex adding validation. The reverse is not allowed though as BeanSerializer.Serialize is final.

I propose removing final from the method to allow for these two inverse functions to be exposed equally. Idea originally discussed in #4482

…ty between this method and BeanDeserializer.deserialize allowing for proxies and subclassing to change serialization behavior
@cowtowncoder
Copy link
Member

Makes sense; happy to merge this.

But one (and only) process thing we need is CLA before the first contributions. It's this:

https://github.com/FasterXML/jackson/blob/master/contributor-agreement.pdf

and is usually easiest done by printing, filling & signing, scanning, emailing to cla at fasterxml dot com.
Only needed once and good for all future contributions.

As soon as I get it, will merge.

Thank you for the PR, looking forward to merging!

@cowtowncoder cowtowncoder added 2.18 cla-needed PR looks good (although may also require code review), but CLA needed from submitter and removed cla-needed PR looks good (although may also require code review), but CLA needed from submitter labels Apr 18, 2024
@cowtowncoder
Copy link
Member

CLA recived, will merge.

@cowtowncoder cowtowncoder changed the title Remove final on method BeanSerializer.serialize Remove final on method BeanSerializer.serialize() Apr 19, 2024
@cowtowncoder cowtowncoder merged commit 22da1a7 into FasterXML:2.18 Apr 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants