diff options
author | Jeremias Maerki <jeremias@apache.org> | 2008-07-25 12:44:20 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2008-07-25 12:44:20 +0000 |
commit | b681486f5c6d36ac028ddee082b7b8c58144f576 (patch) | |
tree | 2d1b7b10c4132ab711ee9fd37f856aca8a597c53 /src/java/org/apache/fop/fo/properties/EnumProperty.java | |
parent | 2d83907e2d37f04aa8bebd938b737189d59eb62d (diff) | |
parent | 92df262a0778ee539c849454be2810621dac1b7e (diff) | |
download | xmlgraphics-fop-b681486f5c6d36ac028ddee082b7b8c58144f576.tar.gz xmlgraphics-fop-b681486f5c6d36ac028ddee082b7b8c58144f576.zip |
Merge from Trunk revisions 677589 to 679734.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@679781 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/properties/EnumProperty.java')
-rw-r--r-- | src/java/org/apache/fop/fo/properties/EnumProperty.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/fo/properties/EnumProperty.java b/src/java/org/apache/fop/fo/properties/EnumProperty.java index d3043c5c3..07cfaadcc 100644 --- a/src/java/org/apache/fop/fo/properties/EnumProperty.java +++ b/src/java/org/apache/fop/fo/properties/EnumProperty.java @@ -5,9 +5,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -27,7 +27,7 @@ import org.apache.fop.fo.expr.PropertyException; * Superclass for properties that wrap an enumeration value */ public final class EnumProperty extends Property { - + /** cache holding all canonical EnumProperty instances */ private static final PropertyCache cache = new PropertyCache(EnumProperty.class); @@ -102,7 +102,7 @@ public final class EnumProperty extends Property { public boolean equals(Object obj) { if (obj instanceof EnumProperty) { EnumProperty ep = (EnumProperty)obj; - return (ep.value == this.value) + return (ep.value == this.value) && ((ep.text == this.text) || (ep.text != null && ep.text.equals(this.text))); |