From: Andreas L. Delmelle Date: Sat, 3 May 2008 10:51:16 +0000 (+0000) Subject: Tweak/correction: save local hash-code (as originally intended...) X-Git-Tag: fop-1_0~667 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6baa2824e1bbcc09ee4267c30b0456b5f70074e2;p=xmlgraphics-fop.git 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 --- 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; } }