fury
fury copied to clipboard
feat(java): implement FinalFieldReplaceResolveSerializer for final fields with writeReplace/readResolve methods.
Why?
Based on the discussion https://github.com/apache/fory/discussions/2786. We can optimize the payload in cases where we have final fields in some Object.
What does this PR do?
Introduce FinalFieldReplaceResolver which does not write the classname into the payload.
Related issues
Does this PR introduce any user-facing change?
- [x] Does this PR introduce any public API change?
- [x] Does this PR introduce any binary protocol compatibility change?