]> granicus.if.org Git - icu/commitdiff
ICU-10493 Added a stub implementation of hashCode() with assert false to make it...
authorYoshito Umaoka <y.umaoka@gmail.com>
Thu, 17 Oct 2013 19:34:21 +0000 (19:34 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Thu, 17 Oct 2013 19:34:21 +0000 (19:34 +0000)
X-SVN-Rev: 34579

icu4j/main/classes/core/src/com/ibm/icu/text/SpoofChecker.java

index d2a10e531f8aba34ed22834d1085e6e2118c3a8e..24ffcf10a12940121f553f151fa9f3df7b0403c7 100644 (file)
@@ -1753,7 +1753,9 @@ public class SpoofChecker {
      *   @param other the SpoofChecker being compared with.
      *   @return true if the two SpoofCheckers are equal.
      *   @internal
+     *   @deprecated This API is ICU internal only.
      */
+    @Override
     public boolean equals(Object other) {
         if (!(other instanceof SpoofChecker)) {return false; }
         SpoofChecker otherSC = (SpoofChecker)other;
@@ -1779,6 +1781,16 @@ public class SpoofChecker {
         return true;
      }
 
+    /**
+     * This is a stub implementation and not designed for generic use.
+     * @internal
+     * @deprecated This API is ICU internal only.
+     */
+    @Override
+    public int hashCode() {
+        assert false;   // To make sure ICU implementation does not depend on this.
+        return 1234;    // Any arbitrary value - for now, using 1234.
+    }
 
     /*
      * Append the confusable skeleton transform for a single code point to a StringBuilder.