ICU-4731 Changed 'new BigInteger("0")' to 'BigInteger.ZERO'

X-SVN-Rev: 22395
This commit is contained in:
Andrew J Macheret 2007-08-15 23:04:17 +00:00
parent 36fdbd9322
commit bcef399a3d

View file

@ -43,7 +43,6 @@ public class NumberFormatTest extends com.ibm.icu.dev.test.TestFmwk {
int pat_length = pat.length;
final String newpat[] = { "#0.#", "#0.", "#.0", "#" };
final String num[] = { "0", "0.", ".0", "0" };
final BigInteger biZero = new BigInteger("0");
for (int i=0; i<pat_length; ++i)
{
DecimalFormat fmt = new DecimalFormat(pat[i], sym);
@ -60,7 +59,7 @@ public class NumberFormatTest extends com.ibm.icu.dev.test.TestFmwk {
logln("Min integer digits = " + fmt.getMinimumIntegerDigits());
}
// BigInteger 0 - ticket#4731
s = ((NumberFormat)fmt).format(biZero);
s = ((NumberFormat)fmt).format(BigInteger.ZERO);
if (!s.equals(num[i]))
{
errln("FAIL: Pattern " + pat[i] + " should format BigInteger zero as " + num[i] +