From: Luis Bernardo Date: Wed, 16 Sep 2015 15:43:21 +0000 (+0000) Subject: FOP-2157: Deadlock in CompareUtil class; fixed typo spotted by Jens Schreiber X-Git-Tag: fop-2_1~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7b2ece9b5963bf47f17ca5c8aafc5a1cf74ade1b;p=xmlgraphics-fop.git 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 --- 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