diff --git a/icu4j/src/com/ibm/icu/dev/test/calendar/IndianTest.java b/icu4j/src/com/ibm/icu/dev/test/calendar/IndianTest.java index 8502986ea95..0f68db41dc4 100644 --- a/icu4j/src/com/ibm/icu/dev/test/calendar/IndianTest.java +++ b/icu4j/src/com/ibm/icu/dev/test/calendar/IndianTest.java @@ -202,7 +202,7 @@ public class IndianTest extends CalendarTest for (int j = 0; j < formatLocales.length; j++ ) { String locName = formatLocales[j]; Locale formatLocale = LocaleUtility.getLocaleFromName(locName); - DateFormat format = DateFormat.getDateTimeInstance(cal, DateFormat.FULL, DateFormat.FULL, formatLocale); + /*DateFormat format = */DateFormat.getDateTimeInstance(cal, DateFormat.FULL, DateFormat.FULL, formatLocale); //logln(calLocName + "/" + locName + " --> " + format.format(time)); } } diff --git a/icu4j/src/com/ibm/icu/dev/test/cldr/TestCLDRVsICU.java b/icu4j/src/com/ibm/icu/dev/test/cldr/TestCLDRVsICU.java index b2df1105deb..2bd53c81e0d 100644 --- a/icu4j/src/com/ibm/icu/dev/test/cldr/TestCLDRVsICU.java +++ b/icu4j/src/com/ibm/icu/dev/test/cldr/TestCLDRVsICU.java @@ -1,4 +1,4 @@ -//##header J2SE15 +//##header JAVASE6 //#if defined(FOUNDATION10) || defined(J2SE13) //#else /* @@ -413,7 +413,7 @@ public class TestCLDRVsICU extends TestFmwk { addHandler("zoneFields", new Handler() { String date = ""; String zone = ""; - String parse = ""; + //String parse = ""; String pattern = ""; public void handleResult(ULocale locale, String result) throws ParseException { @@ -427,7 +427,7 @@ public class TestCLDRVsICU extends TestFmwk { } else if (attributeName.equals("zone")) { zone = attributeValue; } else if (attributeName.equals("parse")) { - parse = attributeValue; + //parse = attributeValue; } } if (!ZONE_MATCH.reset(zone).matches()) return; diff --git a/icu4j/src/com/ibm/icu/dev/test/duration/languages/Test_hi.java b/icu4j/src/com/ibm/icu/dev/test/duration/languages/Test_hi.java index 51b632d8cd0..c456771a928 100644 --- a/icu4j/src/com/ibm/icu/dev/test/duration/languages/Test_hi.java +++ b/icu4j/src/com/ibm/icu/dev/test/duration/languages/Test_hi.java @@ -10,9 +10,6 @@ package com.ibm.icu.dev.test.duration.languages; import com.ibm.icu.dev.test.duration.LanguageTestRoot; - -import com.ibm.icu.impl.duration.Period; -import com.ibm.icu.impl.duration.PeriodFormatter; import com.ibm.icu.impl.duration.BasicPeriodFormatterFactory; import com.ibm.icu.impl.duration.PeriodFormatterFactory; import com.ibm.icu.impl.duration.TimeUnitConstants; @@ -44,12 +41,12 @@ public class Test_hi extends LanguageTestRoot implements TimeUnitConstants { // "more than 1 months", // "more than 1 months ago" - Period[] times = { - Period.at(1, MONTH).inFuture(), - Period.at(1, MONTH).and(2, WEEK).inFuture(), - Period.moreThan(1, MONTH), - Period.moreThan(1, MONTH).inFuture(), - }; +// Period[] times = { +// Period.at(1, MONTH).inFuture(), +// Period.at(1, MONTH).and(2, WEEK).inFuture(), +// Period.moreThan(1, MONTH), +// Period.moreThan(1, MONTH).inFuture(), +// }; String[] targets = { "\u0905\u092d\u0940 \u0938\u0947 \u0967 \u092e\u0939\u0940\u0928\u0947 \u092c\u093e\u0926", @@ -60,7 +57,7 @@ public class Test_hi extends LanguageTestRoot implements TimeUnitConstants { PeriodFormatterFactory pff = BasicPeriodFormatterFactory.getDefault() .setLocale("hi"); - PeriodFormatter pf = pff.getFormatter(); + /*PeriodFormatter pf = */pff.getFormatter(); for (int i = 0; i < targets.length; ++i) { //xAssertEquals(timestring(times[i]), targets, i, pf.format(times[i])); } diff --git a/icu4j/src/com/ibm/icu/dev/test/format/DateFormatTest.java b/icu4j/src/com/ibm/icu/dev/test/format/DateFormatTest.java index ff53d89e467..8cd9c5ac878 100755 --- a/icu4j/src/com/ibm/icu/dev/test/format/DateFormatTest.java +++ b/icu4j/src/com/ibm/icu/dev/test/format/DateFormatTest.java @@ -1,4 +1,4 @@ -//##header J2SE15 +//##header JAVASE6 /* ******************************************************************************* * Copyright (C) 2001-2007, International Business Machines Corporation and * @@ -22,7 +22,6 @@ import java.util.Date; import java.util.Iterator; import java.util.Locale; import java.util.Map; -import java.util.ResourceBundle; import java.util.Set; import com.ibm.icu.impl.ICUResourceBundle; @@ -2047,7 +2046,7 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk { errln("A time instance shouldn't equal a default date format"); } - Date d; + /*Date d;*/ { ChineseDateFormat fmt = new ChineseDateFormat("yymm", Locale.US); try { @@ -2088,7 +2087,7 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk { xbuf.setLength(0); xcal.set(Calendar.HOUR_OF_DAY, 25); fmt.format(xcal, xbuf, fpos); - Date d2 = fmt.parse(xbuf.toString()); + /*Date d2 = */fmt.parse(xbuf.toString()); logln("ok again"); } catch (ParseException e) { @@ -2100,7 +2099,7 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk { // cover gmt+hh:mm DateFormat fmt = new SimpleDateFormat("MM/dd/yy z"); try { - d = fmt.parse("07/10/53 GMT+10:00"); + /*d = */fmt.parse("07/10/53 GMT+10:00"); logln("ok"); } catch (ParseException e) { @@ -2111,7 +2110,7 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk { { ParsePosition pp = new ParsePosition(0); String text = "07/10/53 GMT=10:00"; - d = fmt.parse(text, pp); + /*d = */fmt.parse(text, pp); if(pp.getIndex()!=12){ errln("Parse of 07/10/53 GMT=10:00 for pattern MM/dd/yy z"); } @@ -2138,7 +2137,7 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk { // cover no ':' GMT+#, # < 24 (hh) try { - d = fmt.parse("07/10/53 GMT+07"); + /*d = */fmt.parse("07/10/53 GMT+07"); logln("ok"); } catch (ParseException e) { @@ -2147,7 +2146,7 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk { // cover no ':' GMT+#, # > 24 (hhmm) try { - d = fmt.parse("07/10/53 GMT+0730"); + /*d = */fmt.parse("07/10/53 GMT+0730"); logln("ok"); } catch (ParseException e) { @@ -2156,7 +2155,7 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk { // cover no ':' GMT+#, # > 2400 (this should fail, i suspect, but doesn't) try { - d = fmt.parse("07/10/53 GMT+07300"); + /*d = */fmt.parse("07/10/53 GMT+07300"); logln("should GMT+9999 fail?"); } catch (ParseException e) { @@ -2174,7 +2173,7 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk { // cover raw digits (RFC822) try { - d = fmt.parse("07/10/53 +07"); + /*d = */fmt.parse("07/10/53 +07"); logln("ok"); } catch (ParseException e) { @@ -2183,7 +2182,7 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk { // cover raw digits (RFC822) try { - d = fmt.parse("07/10/53 -0730"); + /*d = */fmt.parse("07/10/53 -0730"); logln("ok"); } catch (ParseException e) { @@ -2193,7 +2192,7 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk { // cover raw digits (RFC822) in DST try { fmt.setTimeZone(TimeZone.getTimeZone("PDT")); - d = fmt.parse("07/10/53 -0730"); + /*d = */fmt.parse("07/10/53 -0730"); logln("ok"); } catch (ParseException e) { @@ -2329,10 +2328,10 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk { errln("FAIL: constructs DateFormatSymbols with calendar and locale failed"); uloc = ULocale.getDefault(); - ResourceBundle resb = DateFormatSymbols.getDateFormatBundle(cal, loc); - ResourceBundle resb2 = DateFormatSymbols.getDateFormatBundle(cal, uloc); - ResourceBundle resb3 = DateFormatSymbols.getDateFormatBundle(cal.getClass(), loc); - ResourceBundle resb4 = DateFormatSymbols.getDateFormatBundle(cal.getClass(), uloc); + /*ResourceBundle resb = */DateFormatSymbols.getDateFormatBundle(cal, loc); + /*ResourceBundle resb2 = */DateFormatSymbols.getDateFormatBundle(cal, uloc); + /*ResourceBundle resb3 = */DateFormatSymbols.getDateFormatBundle(cal.getClass(), loc); + /*ResourceBundle resb4 = */DateFormatSymbols.getDateFormatBundle(cal.getClass(), uloc); /* (ToDo) Not sure how to construct resourceBundle for this test So comment out the verifying code. @@ -3015,25 +3014,25 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk { public void TestFormatToCharacterIteratorCoverage() { // Calling formatToCharacterIterator, using various argument types DateFormat df = DateFormat.getDateTimeInstance(); - AttributedCharacterIterator acit = null; + //AttributedCharacterIterator acit = null; Calendar cal = Calendar.getInstance(); try { - acit = df.formatToCharacterIterator(cal); + /*acit = */df.formatToCharacterIterator(cal); } catch (IllegalArgumentException iae) { errln("FAIL: Calendar must be accepted by formatToCharacterIterator"); } Date d = cal.getTime(); try { - acit = df.formatToCharacterIterator(d); + /*acit = */df.formatToCharacterIterator(d); } catch (IllegalArgumentException iae) { errln("FAIL: Date must be accepted by formatToCharacterIterator"); } Number num = new Long(d.getTime()); try { - acit = df.formatToCharacterIterator(num); + /*acit = */df.formatToCharacterIterator(num); } catch (IllegalArgumentException iae) { errln("FAIL: Number must be accepted by formatToCharacterIterator"); } @@ -3041,7 +3040,7 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk { boolean isException = false; String str = df.format(d); try { - acit = df.formatToCharacterIterator(str); + /*acit = */df.formatToCharacterIterator(str); } catch (IllegalArgumentException iae) { logln("IllegalArgumentException is thrown by formatToCharacterIterator"); isException = true; diff --git a/icu4j/src/com/ibm/icu/dev/test/format/MessageRegression.java b/icu4j/src/com/ibm/icu/dev/test/format/MessageRegression.java index 562309c1f84..eabc11ca342 100644 --- a/icu4j/src/com/ibm/icu/dev/test/format/MessageRegression.java +++ b/icu4j/src/com/ibm/icu/dev/test/format/MessageRegression.java @@ -690,7 +690,7 @@ public class MessageRegression extends com.ibm.icu.dev.test.TestFmwk { } MessageFormat fmt = new MessageFormat("There are {numberOfApples} apples growing on the {whatKindOfTree} tree."); String str = new String("There is one apple growing on the peach tree."); - Map objs = fmt.parseToMap(str, pos); + /*Map objs = */fmt.parseToMap(str, pos); logln("unparsable string , should fail at " + pos.getErrorIndex()); if (pos.getErrorIndex() == -1) errln("Bug 4052223 failed : parsing string " + str); diff --git a/icu4j/src/com/ibm/icu/dev/test/format/NumberFormatRegistrationTest.java b/icu4j/src/com/ibm/icu/dev/test/format/NumberFormatRegistrationTest.java index 411afb2af48..5bf02ada51b 100644 --- a/icu4j/src/com/ibm/icu/dev/test/format/NumberFormatRegistrationTest.java +++ b/icu4j/src/com/ibm/icu/dev/test/format/NumberFormatRegistrationTest.java @@ -109,6 +109,6 @@ public class NumberFormatRegistrationTest extends com.ibm.icu.dev.test.TestFmwk } // coverage - NumberFormat f6 = NumberFormat.getNumberInstance(fu_FU); + /*NumberFormat f6 = */NumberFormat.getNumberInstance(fu_FU); } } diff --git a/icu4j/src/com/ibm/icu/dev/test/format/NumberFormatTest.java b/icu4j/src/com/ibm/icu/dev/test/format/NumberFormatTest.java index f39ec8a3165..8baecbe340a 100755 --- a/icu4j/src/com/ibm/icu/dev/test/format/NumberFormatTest.java +++ b/icu4j/src/com/ibm/icu/dev/test/format/NumberFormatTest.java @@ -1,4 +1,4 @@ -//##header J2SE15 +//##header JAVASE6 /* ******************************************************************************* * Copyright (C) 2001-2007, International Business Machines Corporation and * @@ -860,7 +860,7 @@ public class NumberFormatTest extends com.ibm.icu.dev.test.TestFmwk { logln("PASS: numberformat of string failed as expected"); } - int hash = fmt.hashCode(); + /*int hash = */fmt.hashCode(); logln("compare to string returns: " + fmt.equals("")); diff --git a/icu4j/src/com/ibm/icu/dev/test/serializable/FormatTests.java b/icu4j/src/com/ibm/icu/dev/test/serializable/FormatTests.java index d7415e4168f..5db217b59f5 100644 --- a/icu4j/src/com/ibm/icu/dev/test/serializable/FormatTests.java +++ b/icu4j/src/com/ibm/icu/dev/test/serializable/FormatTests.java @@ -1,4 +1,4 @@ -//##header J2SE15 +//##header JAVASE6 /* ******************************************************************************* * Copyright (C) 1996-2007, International Business Machines Corporation and * @@ -52,10 +52,10 @@ public class FormatTests } public boolean hasSameBehavior(Object a, Object b) { - DurationFormat da = (DurationFormat)a; - DurationFormat db = (DurationFormat)b; + //DurationFormat da = (DurationFormat)a; + //DurationFormat db = (DurationFormat)b; - Date d = new Date(12345); + /*Date d = */new Date(12345); System.err.println("Warning: BasicDurationFormat test is being skipped for now."); return true; //return da.format(d).equals(db.format(d)); @@ -960,7 +960,7 @@ public class FormatTests DateFormat dfb = (DateFormat) b; Date date = new Date(System.currentTimeMillis()); String sfa = dfa.format(date); - String sfb = dfa.format(date); + String sfb = dfb.format(date); return sfa.equals(sfb); } diff --git a/icu4j/src/com/ibm/icu/dev/test/stringprep/TestIDNA.java b/icu4j/src/com/ibm/icu/dev/test/stringprep/TestIDNA.java index f7c58d6333f..c99b3e99db0 100644 --- a/icu4j/src/com/ibm/icu/dev/test/stringprep/TestIDNA.java +++ b/icu4j/src/com/ibm/icu/dev/test/stringprep/TestIDNA.java @@ -746,7 +746,7 @@ public class TestIDNA extends TestFmwk { try{ String ascii = IDNA.convertToASCII(in[i],IDNA.DEFAULT).toString(); try{ - String unicode = IDNA.convertToUnicode(ascii,IDNA.DEFAULT).toString(); + /*String unicode = */IDNA.convertToUnicode(ascii,IDNA.DEFAULT).toString(); }catch(StringPrepParseException ex){ errln("Unexpected exception for convertToUnicode: " + ex.getMessage()); } diff --git a/icu4j/src/com/ibm/icu/dev/test/timescale/TimeScaleAPITest.java b/icu4j/src/com/ibm/icu/dev/test/timescale/TimeScaleAPITest.java index c6338607011..4371a1b1b75 100644 --- a/icu4j/src/com/ibm/icu/dev/test/timescale/TimeScaleAPITest.java +++ b/icu4j/src/com/ibm/icu/dev/test/timescale/TimeScaleAPITest.java @@ -104,10 +104,10 @@ public class TimeScaleAPITest extends TestFmwk public void TestFromLong() { - long result; + //long result; try { - result = UniversalTimeScale.from(0L, -1); + /*result = */UniversalTimeScale.from(0L, -1); errln("from(0L, -1) did not throw IllegalArgumentException."); } catch (IllegalArgumentException iae) { logln("PASS: UniversalTimeScale.from failed as expected"); @@ -118,20 +118,20 @@ public class TimeScaleAPITest extends TestFmwk long fromMax = UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.FROM_MAX_VALUE); try { - result = UniversalTimeScale.from(0L, scale); + /*result = */UniversalTimeScale.from(0L, scale); } catch (IllegalArgumentException iae) { errln("from(0L, " + scale + ") threw IllegalArgumentException."); } try { - result = UniversalTimeScale.from(fromMin, scale); + /*result = */UniversalTimeScale.from(fromMin, scale); } catch (IllegalArgumentException iae) { errln("from(fromMin, " + scale + ") threw IllegalArgumentException."); } if (fromMin > Long.MIN_VALUE) { try { - result = UniversalTimeScale.from(fromMin - 1, scale); + /*result = */UniversalTimeScale.from(fromMin - 1, scale); errln("from(fromMin - 1, " + scale + ") did not throw IllegalArgumentException."); } catch (IllegalArgumentException iae) { logln("PASS: UniversalTimeScale.from failed as expected"); @@ -139,14 +139,14 @@ public class TimeScaleAPITest extends TestFmwk } try { - result = UniversalTimeScale.from(fromMax, scale); + /*result = */UniversalTimeScale.from(fromMax, scale); } catch (IllegalArgumentException iae) { errln("from(fromMax, " + scale + ") threw IllegalArgumentException."); } if (fromMax < Long.MAX_VALUE) { try { - result = UniversalTimeScale.from(fromMax + 1, scale); + /*result = */UniversalTimeScale.from(fromMax + 1, scale); errln("from(fromMax + 1, " + scale + ") did not throw IllegalArgumentException."); } catch (IllegalArgumentException iae) { logln("PASS: UniversalTimeScale.from failed as expected"); @@ -155,7 +155,7 @@ public class TimeScaleAPITest extends TestFmwk } try { - result = UniversalTimeScale.from(0L, UniversalTimeScale.MAX_SCALE); + /*result = */UniversalTimeScale.from(0L, UniversalTimeScale.MAX_SCALE); errln("from(0L, MAX_SCALE) did not throw IllegalArgumetException."); } catch (IllegalArgumentException iae) { logln("PASS: UniversalTimeScale.from failed as expected"); @@ -164,17 +164,17 @@ public class TimeScaleAPITest extends TestFmwk public void TestGetTimeScale() { - long value; + //long value; try { - value = UniversalTimeScale.getTimeScaleValue(-1, 0); + /*value = */UniversalTimeScale.getTimeScaleValue(-1, 0); errln("getTimeScaleValue(-1, 0) did not throw IllegalArgumentException."); } catch (IllegalArgumentException iae) { logln("PASS: UniversalTimeScale.getTimeScaleValue failed as expected"); } try { - value = UniversalTimeScale.getTimeScaleValue(0, -1); + /*value = */UniversalTimeScale.getTimeScaleValue(0, -1); errln("getTimeScaleValue(0, -1) did not throw IllegalArgumentException."); } catch (IllegalArgumentException iae) { logln("PASS: UniversalTimeScale.getTimeScaleValue failed as expected"); @@ -182,21 +182,21 @@ public class TimeScaleAPITest extends TestFmwk for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { try { - value = UniversalTimeScale.getTimeScaleValue(scale, 0); + /*value = */UniversalTimeScale.getTimeScaleValue(scale, 0); } catch (IllegalArgumentException iae) { errln("getTimeScaleValue(" + scale + ", 0) threw IllegalArgumentException."); } } try { - value = UniversalTimeScale.getTimeScaleValue(UniversalTimeScale.MAX_SCALE, 0); + /*value = */UniversalTimeScale.getTimeScaleValue(UniversalTimeScale.MAX_SCALE, 0); errln("getTimeScaleValue(MAX_SCALE, 0) did not throw IllegalArgumentException"); } catch (IllegalArgumentException iae) { logln("PASS: UniversalTimeScale.getTimeScaleValue failed as expected"); } try { - value = UniversalTimeScale.getTimeScaleValue(0, UniversalTimeScale.MAX_SCALE_VALUE); + /*value = */UniversalTimeScale.getTimeScaleValue(0, UniversalTimeScale.MAX_SCALE_VALUE); errln("getTimeScaleValue(0, MAX_SCALE_VALUE) did not throw IllegalArgumentException"); } catch (IllegalArgumentException iae) { logln("PASS: UniversalTimeScale.getTimeScaleValue failed as expected"); @@ -284,10 +284,10 @@ public class TimeScaleAPITest extends TestFmwk public void TestToLong() { - long result; + //long result; try { - result = UniversalTimeScale.toLong(0L, -1); + /*result = */UniversalTimeScale.toLong(0L, -1); errln("toLong(0L, -1) did not throw IllegalArgumentException."); } catch (IllegalArgumentException iae) { logln("PASS: UniversalTimeScale.toLong failed as expected"); @@ -298,20 +298,20 @@ public class TimeScaleAPITest extends TestFmwk long toMax = UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.TO_MAX_VALUE); try { - result = UniversalTimeScale.toLong(0L, scale); + /*result = */UniversalTimeScale.toLong(0L, scale); } catch (IllegalArgumentException iae) { errln("toLong(0L, " + scale + ") threw IllegalArgumentException."); } try { - result = UniversalTimeScale.toLong(toMin, scale); + /*result = */UniversalTimeScale.toLong(toMin, scale); } catch (IllegalArgumentException iae) { errln("toLong(toMin, " + scale + ") threw IllegalArgumentException."); } if (toMin > Long.MIN_VALUE) { try { - result = UniversalTimeScale.toLong(toMin - 1, scale); + /*result = */UniversalTimeScale.toLong(toMin - 1, scale); errln("toLong(toMin - 1, " + scale + ") did not throw IllegalArgumentException."); } catch (IllegalArgumentException iae) { logln("PASS: UniversalTimeScale.toLong failed as expected"); @@ -319,14 +319,14 @@ public class TimeScaleAPITest extends TestFmwk } try { - result = UniversalTimeScale.toLong(toMax, scale); + /*result = */UniversalTimeScale.toLong(toMax, scale); } catch (IllegalArgumentException iae) { errln("toLong(toMax, " + scale + ") threw IllegalArgumentException."); } if (toMax < Long.MAX_VALUE) { try { - result = UniversalTimeScale.toLong(toMax + 1, scale); + /*result = */UniversalTimeScale.toLong(toMax + 1, scale); errln("toLong(toMax + 1, " + scale + ") did not throw IllegalArgumentException."); } catch (IllegalArgumentException iae) { logln("PASS: UniversalTimeScale.toLong failed as expected"); @@ -335,7 +335,7 @@ public class TimeScaleAPITest extends TestFmwk } try { - result = UniversalTimeScale.toLong(0L, UniversalTimeScale.MAX_SCALE); + /*result = */UniversalTimeScale.toLong(0L, UniversalTimeScale.MAX_SCALE); errln("toLong(0L, MAX_SCALE) did not throw IllegalArgumetException."); } catch (IllegalArgumentException iae) { logln("PASS: UniversalTimeScale.toLong failed as expected"); diff --git a/icu4j/src/com/ibm/icu/dev/test/translit/JamoTest.java b/icu4j/src/com/ibm/icu/dev/test/translit/JamoTest.java index 2aff30c79d1..21702860549 100755 --- a/icu4j/src/com/ibm/icu/dev/test/translit/JamoTest.java +++ b/icu4j/src/com/ibm/icu/dev/test/translit/JamoTest.java @@ -15,7 +15,7 @@ import java.util.*; */ public class JamoTest extends TransliteratorTest { - private static final char SEP = '-'; +// private static final char SEP = '-'; public static void main(String[] args) throws Exception { new JamoTest().run(args); diff --git a/icu4j/src/com/ibm/icu/dev/test/translit/TransliteratorTest.java b/icu4j/src/com/ibm/icu/dev/test/translit/TransliteratorTest.java index 6511b00f55c..2d31b3f3bb5 100755 --- a/icu4j/src/com/ibm/icu/dev/test/translit/TransliteratorTest.java +++ b/icu4j/src/com/ibm/icu/dev/test/translit/TransliteratorTest.java @@ -2071,7 +2071,7 @@ public class TransliteratorTest extends TestFmwk { */ public void TestLocaleInstantiation() { try{ - Transliterator t = Transliterator.getInstance("te_IN-Latin"); + /*Transliterator t = */Transliterator.getInstance("te_IN-Latin"); //expect(t, "\u0430", "a"); }catch(IllegalArgumentException ex){ warnln("Could not load locale data for obtaining the script used in the locale te_IN. "+ex.getMessage()); diff --git a/icu4j/src/com/ibm/icu/text/ArabicShaping.java b/icu4j/src/com/ibm/icu/text/ArabicShaping.java index 04b948c77d5..52eaee49d2c 100755 --- a/icu4j/src/com/ibm/icu/text/ArabicShaping.java +++ b/icu4j/src/com/ibm/icu/text/ArabicShaping.java @@ -403,16 +403,16 @@ public final class ArabicShaping { 0x0, 0x2, 0x4, 0x6, 0x8, 0xA, 0xC, 0xE }; - private static final char convertLamAlef[] = { - '\u0622', // FEF5 - '\u0622', // FEF6 - '\u0623', // FEF7 - '\u0623', // FEF8 - '\u0625', // FEF9 - '\u0625', // FEFA - '\u0627', // FEFB - '\u0627' // FEFC - }; +// private static final char convertLamAlef[] = { +// '\u0622', // FEF5 +// '\u0622', // FEF6 +// '\u0623', // FEF7 +// '\u0623', // FEF8 +// '\u0625', // FEF9 +// '\u0625', // FEFA +// '\u0627', // FEFB +// '\u0627' // FEFC +// }; private static final char convertNormalizedLamAlef[] = { '\u0622', // 065C diff --git a/icu4j/src/com/ibm/icu/text/RuleBasedBreakIterator.java b/icu4j/src/com/ibm/icu/text/RuleBasedBreakIterator.java index d291357c5a2..c6805825df8 100755 --- a/icu4j/src/com/ibm/icu/text/RuleBasedBreakIterator.java +++ b/icu4j/src/com/ibm/icu/text/RuleBasedBreakIterator.java @@ -1,4 +1,4 @@ -//##header J2SE15 +//##header JAVASE6 /* ******************************************************************************* * Copyright (C) 2005-2007 International Business Machines Corporation and * @@ -48,13 +48,13 @@ public class RuleBasedBreakIterator extends BreakIterator { return This; } - private RuleBasedBreakIterator(RuleBasedBreakIterator other) { - // TODO: check types. - fRData = other.fRData; - if (fText != null) { - fText = (CharacterIterator)(other.fText.clone()); - } - } +// private RuleBasedBreakIterator(RuleBasedBreakIterator other) { +// // TODO: check types. +// fRData = other.fRData; +// if (fText != null) { +// fText = (CharacterIterator)(other.fText.clone()); +// } +// } /** * Construct a RuleBasedBreakIterator from a set of rules supplied as a string.