ptupitsyn commented on a change in pull request #8614:
URL: https://github.com/apache/ignite/pull/8614#discussion_r549333516



##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/processors/platform/utils/PlatformUtils.java
##########
@@ -989,7 +990,9 @@ private static boolean knownMap(Object o) {
      * @return Result.
      */
     public static Object[] unwrapBinariesInArray(Object[] arr) {
-        Object[] res = new Object[arr.length];
+        Class<?> compType = arr.getClass().getComponentType();

Review comment:
       I think we can change the logic to the following:
   ```
   if (arr.getClass().getComponentType() != Object.class)
       return arr;
   ```
   
   Arrays like this do not require further unwrapping.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to