CrazyHZM commented on code in PR #13351:
URL: https://github.com/apache/dubbo/pull/13351#discussion_r1395273373


##########
dubbo-rpc/dubbo-rpc-injvm/src/main/java/org/apache/dubbo/rpc/protocol/injvm/DefaultParamDeepCopyUtil.java:
##########
@@ -50,7 +51,11 @@ public <T> T copy(URL url, Object src, Class<T> targetClass) 
{
 
             try (ByteArrayInputStream inputStream = new 
ByteArrayInputStream(outputStream.toByteArray())) {
                 ObjectInput objectInput = serialization.deserialize(url, 
inputStream);
-                return objectInput.readObject(targetClass);
+                if (type != null) {
+                    return objectInput.readObject(targetClass, type);
+                } else {
+                    return objectInput.readObject(targetClass);
+                }

Review Comment:
   The `type` parameter does not seem to be used now.
   



-- 
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: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to