diff options
author | Glenn Adams <gadams@apache.org> | 2012-06-14 19:33:41 +0000 |
---|---|---|
committer | Glenn Adams <gadams@apache.org> | 2012-06-14 19:33:41 +0000 |
commit | bb62a7639a02787839f9eec1a3214bdf7fd2d4cc (patch) | |
tree | 7a18c0ac867c2856ca5e574d93f045ebf909eb94 /src/java/org/apache/fop/fo/properties/CondLengthProperty.java | |
parent | e7181a7fdfa0336e688d8ed9e27f0304c741d7d2 (diff) | |
download | xmlgraphics-fop-bb62a7639a02787839f9eec1a3214bdf7fd2d4cc.tar.gz xmlgraphics-fop-bb62a7639a02787839f9eec1a3214bdf7fd2d4cc.zip |
Bugzilla #53412: Eliminate incorrect use of object identity which produces excessive property cache collisions. Submitted by Alexios Giotis.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1350379 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/properties/CondLengthProperty.java')
-rw-r--r-- | src/java/org/apache/fop/fo/properties/CondLengthProperty.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/properties/CondLengthProperty.java b/src/java/org/apache/fop/fo/properties/CondLengthProperty.java index 07eec7361..19c8af1bb 100644 --- a/src/java/org/apache/fop/fo/properties/CondLengthProperty.java +++ b/src/java/org/apache/fop/fo/properties/CondLengthProperty.java @@ -26,6 +26,7 @@ import org.apache.fop.fo.Constants; import org.apache.fop.fo.FObj; import org.apache.fop.fo.PropertyList; import org.apache.fop.fo.expr.PropertyException; +import org.apache.fop.util.CompareUtil; /** * Superclass for properties that have conditional lengths @@ -192,8 +193,8 @@ public class CondLengthProperty extends Property implements CompoundDatatype { if (obj instanceof CondLengthProperty) { CondLengthProperty clp = (CondLengthProperty)obj; - return (this.length == clp.length - && this.conditionality == clp.conditionality); + return (CompareUtil.equal(this.length, clp.length) + && CompareUtil.equal(this.conditionality, clp.conditionality)); } return false; } |