ICU-9138 Fixed compiler warnings - corrected invalid java doc tags, deleted unused local variable.

X-SVN-Rev: 31527
This commit is contained in:
Yoshito Umaoka 2012-02-27 23:18:44 +00:00
parent 5a43428ac6
commit f813baec1b
2 changed files with 10 additions and 11 deletions

View File

@ -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.
*/

View File

@ -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]);