You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2021/12/27 12:23:26 UTC

[GitHub] [ignite-3] SammyVimes commented on a change in pull request #526: IGNITE-16185 Improve the interface of UserObjectMarshaller

SammyVimes commented on a change in pull request #526:
URL: https://github.com/apache/ignite-3/pull/526#discussion_r775453501



##########
File path: modules/network/src/main/java/org/apache/ignite/internal/network/serialization/ClassDescriptor.java
##########
@@ -211,6 +215,37 @@ public boolean supportsWriteReplace() {
         return (isSerializable() || isExternalizable()) && hasWriteReplace();
     }
 
+    /**
+     * Applies writeReplace() method.
+     *
+     * @param object     object to which to apply
+     * @return writeReplace() result
+     * @throws SpecialMethodInvocationException if writeReplace() invocation fails
+     */
+    public Object applyWriteReplace(Object object) throws SpecialMethodInvocationException {

Review comment:
       Looks kinda strange that descriptor applies methods, doesn't it?




-- 
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-unsubscribe@ignite.apache.org

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