Skip to content

Commit

Permalink
fixed files form Mockito #22
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent c0f20a8 commit 76dc45a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
public class Equality {

public static boolean areEqual(Object o1, Object o2) {
if (o1 == null || o2 == null) {
if (o1 == o2 ) {
return true;
} else if (o1 == null || o2 == null) {
return o1 == null && o2 == null;
} else if (isArray(o1)) {
return isArray(o2) && areArraysEqual(o1, o2);
Expand Down

0 comments on commit 76dc45a

Please sign in to comment.