ICU-4907 remove some minor compilation errors that eclipse reports

X-SVN-Rev: 18757
This commit is contained in:
Doug Felt 2005-11-04 21:01:27 +00:00
parent d1f265499b
commit 4dbcc89a52
2 changed files with 4 additions and 4 deletions

View file

@ -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");

View file

@ -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;