ICU-10493 Added a stub implementation of hashCode() with assert false to make it consistent with equals() in SpoofChecker.
X-SVN-Rev: 34579
This commit is contained in:
parent
9fa0f4299d
commit
77b6bb7721
@ -1753,7 +1753,9 @@ public class SpoofChecker {
|
|||||||
* @param other the SpoofChecker being compared with.
|
* @param other the SpoofChecker being compared with.
|
||||||
* @return true if the two SpoofCheckers are equal.
|
* @return true if the two SpoofCheckers are equal.
|
||||||
* @internal
|
* @internal
|
||||||
|
* @deprecated This API is ICU internal only.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean equals(Object other) {
|
public boolean equals(Object other) {
|
||||||
if (!(other instanceof SpoofChecker)) {return false; }
|
if (!(other instanceof SpoofChecker)) {return false; }
|
||||||
SpoofChecker otherSC = (SpoofChecker)other;
|
SpoofChecker otherSC = (SpoofChecker)other;
|
||||||
@ -1779,6 +1781,16 @@ public class SpoofChecker {
|
|||||||
return true;
|
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.
|
* Append the confusable skeleton transform for a single code point to a StringBuilder.
|
||||||
|
Loading…
Reference in New Issue
Block a user