aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2008-05-03 10:51:16 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2008-05-03 10:51:16 +0000
commit6baa2824e1bbcc09ee4267c30b0456b5f70074e2 (patch)
tree194cfeeeca5fed38f36fe4587eb2837a72585b6e /src/java/org
parente026c24034e1dfedb674d1b150cf790f2f0a1f22 (diff)
downloadxmlgraphics-fop-6baa2824e1bbcc09ee4267c30b0456b5f70074e2.tar.gz
xmlgraphics-fop-6baa2824e1bbcc09ee4267c30b0456b5f70074e2.zip
Tweak/correction: save local hash-code (as originally intended...)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@653045 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r--src/java/org/apache/fop/fo/properties/CommonHyphenation.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/properties/CommonHyphenation.java b/src/java/org/apache/fop/fo/properties/CommonHyphenation.java
index f47ddbe0c..dfafa3b16 100644
--- a/src/java/org/apache/fop/fo/properties/CommonHyphenation.java
+++ b/src/java/org/apache/fop/fo/properties/CommonHyphenation.java
@@ -203,7 +203,7 @@ public final class CommonHyphenation {
/** {@inheritDoc} */
public int hashCode() {
- if (hash == 0) {
+ if (this.hash == 0) {
int hash = 17;
hash = 37 * hash + (language == null ? 0 : language.hashCode());
hash = 37 * hash + (script == null ? 0 : script.hashCode());
@@ -215,8 +215,9 @@ public final class CommonHyphenation {
(hyphenationPushCharacterCount == null ? 0 : hyphenationPushCharacterCount.hashCode());
hash = 37 * hash +
(hyphenationRemainCharacterCount == null ? 0 : hyphenationRemainCharacterCount.hashCode());
+ this.hash = hash;
}
- return hash;
+ return this.hash;
}
}