]> granicus.if.org Git - icu/commitdiff
ICU-8854 Class defines equals() but not hashCode().
authorAbhinav Gupta <mail@abhinavg.net>
Mon, 7 Nov 2011 16:36:16 +0000 (16:36 +0000)
committerAbhinav Gupta <mail@abhinavg.net>
Mon, 7 Nov 2011 16:36:16 +0000 (16:36 +0000)
X-SVN-Rev: 30935

icu4j/main/classes/core/src/com/ibm/icu/impl/DateNumberFormat.java
icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedNumberFormat.java

index 1635f7c365e898350aab16ffe1a73df1d92df2e4..03349de1854877de277680a30218da939ae5b568 100644 (file)
@@ -243,6 +243,10 @@ public final class DateNumberFormat extends NumberFormat {
                 && this.positiveOnly == other.positiveOnly
                 && Arrays.equals(this.digits, other.digits));
     }
+    
+    public int hashCode() {
+        return super.hashCode();
+    }
 
     private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
         stream.defaultReadObject();
index 2eed61c930515ee74302d8d36ca166bd5aa913f7..5f374192e1829ba65ea5108e1ceab2315816a879 100644 (file)
@@ -869,6 +869,10 @@ public class RuleBasedNumberFormat extends NumberFormat {
             return true;
         }
     }
+    
+    public int hashCode() {
+        return super.hashCode();
+    }
 
     /**
      * Generates a textual description of this formatter.