diff options
author | Luis Bernardo <lbernardo@apache.org> | 2015-09-16 15:43:21 +0000 |
---|---|---|
committer | Luis Bernardo <lbernardo@apache.org> | 2015-09-16 15:43:21 +0000 |
commit | 7b2ece9b5963bf47f17ca5c8aafc5a1cf74ade1b (patch) | |
tree | cb99313cc02cd1289247bd7fdc3935f02976fd85 /src/java | |
parent | 6bb9f1531191c010126153159018a6de04dde7db (diff) | |
download | xmlgraphics-fop-7b2ece9b5963bf47f17ca5c8aafc5a1cf74ade1b.tar.gz xmlgraphics-fop-7b2ece9b5963bf47f17ca5c8aafc5a1cf74ade1b.zip |
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
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/fop/util/CompareUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 |