mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-4907 remove some minor compilation errors that eclipse reports
X-SVN-Rev: 18757
This commit is contained in:
parent
d1f265499b
commit
4dbcc89a52
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2001-2004, International Business Machines Corporation and *
|
||||
* Copyright (C) 2001-2005, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -427,7 +427,7 @@ public class ICUServiceTest extends TestFmwk
|
|||
logln("display names in reverse order: " +
|
||||
service.getDisplayNames(ULocale.US, new Comparator() {
|
||||
public int compare(Object lhs, Object rhs) {
|
||||
return -String.CASE_INSENSITIVE_ORDER.compare(lhs, rhs);
|
||||
return -String.CASE_INSENSITIVE_ORDER.compare((String)lhs, (String)rhs);
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
@ -776,7 +776,7 @@ public class ICUServiceTest extends TestFmwk
|
|||
SortedMap map = service.getDisplayNames(ULocale.US,
|
||||
new Comparator() {
|
||||
public int compare(Object lhs, Object rhs) {
|
||||
return -String.CASE_INSENSITIVE_ORDER.compare(lhs, rhs);
|
||||
return -String.CASE_INSENSITIVE_ORDER.compare((String)lhs, (String)rhs);
|
||||
}
|
||||
},
|
||||
"es");
|
||||
|
|
|
@ -1728,7 +1728,7 @@ public final class ULocale implements Serializable {
|
|||
private Comparator getKeyComparator() {
|
||||
final Comparator comp = new Comparator() {
|
||||
public int compare(Object lhs, Object rhs) {
|
||||
return ((String)lhs).compareTo(rhs);
|
||||
return ((String)lhs).compareTo((String)rhs);
|
||||
}
|
||||
};
|
||||
return comp;
|
||||
|
|
Loading…
Add table
Reference in a new issue