Skip to content

Conversation

@nizhikov
Copy link
Contributor

Thank you for submitting the pull request to the Apache Ignite.

In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:

The Contribution Checklist

  • There is a single JIRA ticket related to the pull request.
  • The web-link to the pull request is attached to the JIRA ticket.
  • The JIRA ticket has the Patch Available state.
  • The pull request body describes changes that have been made.
    The description explains WHAT and WHY was made instead of HOW.
  • The pull request title is treated as the final commit message.
    The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
  • A reviewer has been mentioned through the JIRA comments
    (see the Maintainers list)
  • The pull request has been checked by the Teamcity Bot and
    the green visa attached to the JIRA ticket (see TC.Bot: Check PR)

Notes

If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com #ignite channel.

Comment on lines 77 to 97
if (thisVal.getClass().isArray()) {
if (thisVal instanceof Object[])
return cacheVal instanceof Object[] && Arrays.deepEquals((Object[])thisVal, (Object[])cacheVal);
else if (thisVal instanceof byte[])
return cacheVal instanceof byte[] && Arrays.equals((byte[])thisVal, (byte[])cacheVal);
else if (thisVal instanceof short[])
return cacheVal instanceof short[] && Arrays.equals((short[])thisVal, (short[])cacheVal);
else if (thisVal instanceof int[])
return cacheVal instanceof int[] && Arrays.equals((int[])thisVal, (int[])cacheVal);
else if (thisVal instanceof long[])
return cacheVal instanceof long[] && Arrays.equals((long[])thisVal, (long[])cacheVal);
else if (thisVal instanceof float[])
return cacheVal instanceof float[] && Arrays.equals((float[])thisVal, (float[])cacheVal);
else if (thisVal instanceof double[])
return cacheVal instanceof double[] && Arrays.equals((double[])thisVal, (double[])cacheVal);
else if (thisVal instanceof boolean[])
return cacheVal instanceof boolean[] && Arrays.equals((boolean[])thisVal, (boolean[])cacheVal);
else if (thisVal instanceof char[])
return cacheVal instanceof char[] && Arrays.equals((char[])thisVal, (char[])cacheVal);
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Objects.deepEquals() ?

@nizhikov nizhikov merged commit e3acf4e into apache:master Dec 15, 2021
xintrian pushed a commit to xintrian/ignite that referenced this pull request May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants