From f813baec1b288824e152f26f8a8ea59d68c2e32f Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Mon, 27 Feb 2012 23:18:44 +0000 Subject: [PATCH] ICU-9138 Fixed compiler warnings - corrected invalid java doc tags, deleted unused local variable. X-SVN-Rev: 31527 --- .../src/com/ibm/icu/text/CompactDecimalFormat.java | 8 ++++---- .../src/com/ibm/icu/dev/test/format/RbnfTest.java | 13 ++++++------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/CompactDecimalFormat.java b/icu4j/main/classes/core/src/com/ibm/icu/text/CompactDecimalFormat.java index 97b316aeeaf..5265bb655f3 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/CompactDecimalFormat.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/CompactDecimalFormat.java @@ -179,7 +179,7 @@ public class CompactDecimalFormat extends DecimalFormat { } /** - * @inheritDoc + * {@inheritDoc} * @draft ICU 49 * @provisional This API might change or be removed in a future release. */ @@ -189,7 +189,7 @@ public class CompactDecimalFormat extends DecimalFormat { } /** - * @inheritDoc + * {@inheritDoc} * @draft ICU 49 * @provisional This API might change or be removed in a future release. */ @@ -199,7 +199,7 @@ public class CompactDecimalFormat extends DecimalFormat { } /** - * @inheritDoc + * {@inheritDoc} * @draft ICU 49 * @provisional This API might change or be removed in a future release. */ @@ -209,7 +209,7 @@ public class CompactDecimalFormat extends DecimalFormat { } /** - * @inheritDoc + * {@inheritDoc} * @draft ICU 49 * @provisional This API might change or be removed in a future release. */ diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/RbnfTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/RbnfTest.java index 2f0c88a6b13..60b3a3014e5 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/RbnfTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/RbnfTest.java @@ -1281,23 +1281,22 @@ public class RbnfTest extends TestFmwk { public void TestSetDecimalFormatSymbols() { RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(Locale.ENGLISH, RuleBasedNumberFormat.ORDINAL); - + DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.ENGLISH); - + double number = 1001; - - char newSeparator = '&'; + String[] expected = { "1,001st", "1&001st" }; - + String result = rbnf.format(number); if (!result.equals(expected[0])) { errln("Format Error - Got: " + result + " Expected: " + expected[0]); } - + /* Set new symbol for testing */ dfs.setGroupingSeparator('&'); rbnf.setDecimalFormatSymbols(dfs); - + result = rbnf.format(number); if (!result.equals(expected[1])) { errln("Format Error - Got: " + result + " Expected: " + expected[1]); -- 2.40.0