ICU-5888 Fix compile error caused by the use of Java 5 syntax.

X-SVN-Rev: 22568
This commit is contained in:
Yoshito Umaoka 2007-08-29 19:07:17 +00:00
parent 42188d3e3d
commit f348dd22ee

View File

@ -68,7 +68,8 @@ public class TimeZoneFormatTest extends com.ibm.icu.dev.test.TestFmwk {
// prepare the zoneFormats for the locale
List zoneFormatList = new ArrayList();
for (String zoneFormat : zoneFormats) {
for (int zoneFormatsIndex = 0; zoneFormatsIndex < zoneFormats.length; ++zoneFormatsIndex) {
String zoneFormat = zoneFormats[zoneFormatsIndex];
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(zoneFormat, locale);
try {
// check once just to make sure the syntax is supported