summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/org/apache/fop/util/CompareUtil.java2
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