chaokunyang commented on code in PR #1911:
URL: https://github.com/apache/fury/pull/1911#discussion_r1817861509
##########
java/fury-core/src/main/java/org/apache/fury/serializer/AbstractObjectSerializer.java:
##########
@@ -256,6 +306,29 @@ private InternalFieldInfo[] buildFieldsInfo() {
return fieldInfos;
}
+ public static InternalFieldInfo[] buildFieldsInfo(Fury fury, List<Field>
fields) {
Review Comment:
Could we just use
`org.apache.fury.serializer.AbstractObjectSerializer#buildFieldInfos` instead.
We should only copy those fields if we create object new instance following
serialization process
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]