nizhikov commented on code in PR #10047:
URL: https://github.com/apache/ignite/pull/10047#discussion_r893220355


##########
modules/core/src/test/java/org/apache/ignite/internal/processors/cache/consistency/ReadRepairDataGenerator.java:
##########
@@ -218,6 +217,17 @@ public void generateAndCheck(
         }
     }
 
+    /**
+     * @param obj Object.
+     */
+    private Object describeArrayIfNeeded(Object obj) {
+        if (obj instanceof Object[])
+            return Arrays.deepToString((Object[])obj);
+        else if (obj instanceof int[])

Review Comment:
   Let's user `obj != null && obj.getClass().isArray()` here. To handle all 
primitive arrays.



##########
modules/core/src/test/java/org/apache/ignite/internal/processors/cache/consistency/ReadRepairDataGenerator.java:
##########
@@ -218,6 +217,17 @@ public void generateAndCheck(
         }
     }
 
+    /**
+     * @param obj Object.
+     */
+    private Object describeArrayIfNeeded(Object obj) {
+        if (obj instanceof Object[])
+            return Arrays.deepToString((Object[])obj);
+        else if (obj instanceof int[])

Review Comment:
   Let's use `obj != null && obj.getClass().isArray()` here. To handle all 
primitive arrays.



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