sergey-chugunov-1985 commented on code in PR #12652:
URL: https://github.com/apache/ignite/pull/12652#discussion_r2731635856


##########
modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java:
##########
@@ -8241,4 +8244,31 @@ public void clearAllListener() {
                 listeners.clear();
         }
     }
+
+    /** */
+    public static final IgniteDataTransferObjectSerializer<?> EMPTY = new 
IgniteDataTransferObjectSerializer() {
+        /** {@inheritDoc} */
+        @Override public void writeExternal(Object instance, ObjectOutput out) 
{
+            // No-op.
+        }
+
+        /** {@inheritDoc} */
+        @Override public void readExternal(Object instance, ObjectInput in) {
+            // No-op.
+        }
+    };
+
+    /** */
+    public static <T extends IgniteDataTransferObject> 
IgniteDataTransferObjectSerializer<T> loadSerializer(Class<T> cls) {

Review Comment:
   From what I see from the code this method is called from 
`IDTOSerializerFactory`. But at the same time it loads the same class and 
creates instance of it again (unconditionally).
   
   Is it possible to restructure our code to untangle this code flow?



-- 
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]

Reply via email to