ICU-9138 Fixed compiler warnings - corrected invalid java doc tags, deleted unused local variable.
X-SVN-Rev: 31527
This commit is contained in:
parent
5a43428ac6
commit
f813baec1b
@ -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.
|
||||
*/
|
||||
|
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user