From 29acc27d2a01334653f0d272e030361bb1852122 Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Fri, 14 Aug 2009 18:26:52 +0000 Subject: [PATCH] ICU-7027 Synchronized TestTable32 with the C version, which actually refers a test case field. By this change, unused warning was resolved. X-SVN-Rev: 26499 --- .../dev/test/util/ICUResourceBundleTest.java | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java index d69fc58f62f..b6e1f9cc8b2 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java @@ -368,7 +368,7 @@ public final class ICUResourceBundleTest extends TestFmwk { }; UResourceBundle bundle = null; try { - bundle = (UResourceBundle)UResourceBundle.getBundleInstance("com/ibm/icu/dev/data/testdata","testtable32", testLoader); + bundle = UResourceBundle.getBundleInstance("com/ibm/icu/dev/data/testdata","testtable32", testLoader); } catch (MissingResourceException ex) { warnln("could not load resource data: " + ex.getMessage()); @@ -378,15 +378,19 @@ public final class ICUResourceBundleTest extends TestFmwk { if(bundle.getType()!= UResourceBundle.TABLE){ errln("Could not get the correct type for bundle testtable32"); } + int size =bundle.getSize(); if(size!=66000){ errln("Could not get the correct size for bundle testtable32"); } + + int number = -1; + + // get the items by index for(int i =0; i