Use standard Arrays.equals(int[], int[]).
Remove duplicated primitive array compare.