From 7b2ece9b5963bf47f17ca5c8aafc5a1cf74ade1b Mon Sep 17 00:00:00 2001 From: Luis Bernardo Date: Wed, 16 Sep 2015 15:43:21 +0000 Subject: [PATCH] FOP-2157: Deadlock in CompareUtil class; fixed typo spotted by Jens Schreiber git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1703427 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/util/CompareUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/util/CompareUtil.java b/src/java/org/apache/fop/util/CompareUtil.java index 6829336db..4c83da1aa 100644 --- a/src/java/org/apache/fop/util/CompareUtil.java +++ b/src/java/org/apache/fop/util/CompareUtil.java @@ -44,7 +44,7 @@ public final class CompareUtil { */ public static boolean equal(Object o1, Object o2) { int o1Hash = System.identityHashCode(o1); - int o2Hash = System.identityHashCode(o1); + int o2Hash = System.identityHashCode(o2); if (o1Hash == o2Hash && o1 != o2 && o1Hash != 0) { // in the rare case of different objects with the same hash code, // the tieLock object is used to synchronize access -- 2.39.5