ICU-7027 Fixed some compiler warnings.

X-SVN-Rev: 26741
This commit is contained in:
Yoshito Umaoka 2009-10-05 21:16:36 +00:00
parent 5380e956d3
commit ea7d49c696

View File

@ -83,11 +83,11 @@ public class IndexCharacters {
* @draft ICU 4.2 * @draft ICU 4.2
* @provisional This API might change or be removed in a future release. * @provisional This API might change or be removed in a future release.
*/ */
@SuppressWarnings("unchecked")
public IndexCharacters(ULocale locale) { public IndexCharacters(ULocale locale) {
this(locale, LocaleData.getExemplarSet(locale, LocaleData.ES_STANDARD), Collator.getInstance(locale)); this(locale, LocaleData.getExemplarSet(locale, LocaleData.ES_STANDARD), Collator.getInstance(locale));
} }
@SuppressWarnings("unchecked")
public IndexCharacters(ULocale locale, UnicodeSet exemplarSet, Collator collator) { public IndexCharacters(ULocale locale, UnicodeSet exemplarSet, Collator collator) {
this.locale = locale; this.locale = locale;
try { try {
@ -99,7 +99,7 @@ public class IndexCharacters {
// get the exemplars, and handle special cases // get the exemplars, and handle special cases
UnicodeSet exemplars = (UnicodeSet) exemplarSet.cloneAsThawed(); UnicodeSet exemplars = exemplarSet.cloneAsThawed();
// question: should we add auxiliary exemplars? // question: should we add auxiliary exemplars?
if (exemplars.containsSome(CORE_LATIN)) { if (exemplars.containsSome(CORE_LATIN)) {
exemplars.addAll(CORE_LATIN); exemplars.addAll(CORE_LATIN);