diff --git a/projects/Mockito/22/org/mockito/internal/matchers/Equality.java b/projects/Mockito/22/org/mockito/internal/matchers/Equality.java index 43e11fc..0791441 100644 --- a/projects/Mockito/22/org/mockito/internal/matchers/Equality.java +++ b/projects/Mockito/22/org/mockito/internal/matchers/Equality.java @@ -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);