]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Tweak/correction: save local hash-code (as originally intended...)
authorAndreas L. Delmelle <adelmelle@apache.org>
Sat, 3 May 2008 10:51:16 +0000 (10:51 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Sat, 3 May 2008 10:51:16 +0000 (10:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@653045 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/properties/CommonHyphenation.java

index f47ddbe0c75a12e321f7afcbe6238a900e6accaf..dfafa3b16539e2bcbfd74908901f49b700a5c63c 100644 (file)
@@ -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;
     }
     
 }