From 2e0093f2509cb9fe80bc3d3a5e7f91cecc60c9dd Mon Sep 17 00:00:00 2001 From: Ram Viswanadha Date: Tue, 22 Mar 2005 21:49:45 +0000 Subject: [PATCH] ICU-4450 synch data with CLDR 1.3-alpha X-SVN-Rev: 17374 --- icu4j/src/com/ibm/icu/impl/ICUResourceBundleImpl.java | 9 +++------ icu4j/src/com/ibm/icu/impl/data/icudata.jar | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/icu4j/src/com/ibm/icu/impl/ICUResourceBundleImpl.java b/icu4j/src/com/ibm/icu/impl/ICUResourceBundleImpl.java index 64946b6962..c35f8a8da9 100644 --- a/icu4j/src/com/ibm/icu/impl/ICUResourceBundleImpl.java +++ b/icu4j/src/com/ibm/icu/impl/ICUResourceBundleImpl.java @@ -449,7 +449,7 @@ public class ICUResourceBundleImpl extends ICUResourceBundle { if (val > -1) { return handleGet(val, table); } - throw new UResourceTypeMismatchException(""); + throw new UResourceTypeMismatchException("Could not get the correct value for index: "+ index); } protected ICUResourceBundle handleGet(int index) { return handleGet(index, null); @@ -599,11 +599,8 @@ public class ICUResourceBundleImpl extends ICUResourceBundle { private static final char RES_PATH_SEP_CHAR = '/'; private static final String ICUDATA = "ICUDATA"; private static final int getIndex(String s) { - if (s.length() == 1) { - char c = s.charAt(0); - if (Character.isDigit(c)) { - return Integer.valueOf(s).intValue(); - } + if (s.length() >= 1) { + return Integer.valueOf(s).intValue(); } return -1; } diff --git a/icu4j/src/com/ibm/icu/impl/data/icudata.jar b/icu4j/src/com/ibm/icu/impl/data/icudata.jar index 9a14d97339..218590d8c0 100644 --- a/icu4j/src/com/ibm/icu/impl/data/icudata.jar +++ b/icu4j/src/com/ibm/icu/impl/data/icudata.jar @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:be6112e03054ac74371de4e032c42ba6867fe6c2c1e79de7881acd70a9d3df12 -size 2020953 +oid sha256:6c170448cded9a3601290c32a29d978ec059ca3c9146d4cd58447b1e41abb7d4 +size 1938947