From 76dc45af278afc4a0c53ffbd2008aeee569a3854 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Tue, 7 Mar 2017 13:27:58 +0100 Subject: [PATCH] fixed files form Mockito #22 --- .../Mockito/22/org/mockito/internal/matchers/Equality.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);