ICU-8474 Revert changes ULocale's class signature and comparTo method. Also removed Comparable from PluralRule's class signature, but preserved compareTo method as @internal.
X-SVN-Rev: 34289
This commit is contained in:
parent
308b16079b
commit
e27c77829d
@ -165,7 +165,7 @@ import com.ibm.icu.util.ULocale;
|
||||
*
|
||||
* @stable ICU 3.8
|
||||
*/
|
||||
public class PluralRules implements Serializable, Comparable<PluralRules> {
|
||||
public class PluralRules implements Serializable {
|
||||
|
||||
static final UnicodeSet ALLOWED_ID = new UnicodeSet("[a-z]").freeze();
|
||||
|
||||
|
@ -107,7 +107,7 @@ import com.ibm.icu.text.LocaleDisplayNames.DialectHandling;
|
||||
* @author Ram Viswanadha
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public final class ULocale implements Serializable, Comparable<ULocale> {
|
||||
public final class ULocale implements Serializable {
|
||||
// using serialver from jdk1.4.2_05
|
||||
private static final long serialVersionUID = 3715177670352309217L;
|
||||
|
||||
@ -4156,12 +4156,4 @@ public final class ULocale implements Serializable, Comparable<ULocale> {
|
||||
return val;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* @internal
|
||||
* @deprecated
|
||||
*/
|
||||
public int compareTo(ULocale other) {
|
||||
return toLanguageTag().compareTo(other.toLanguageTag());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user