--- old/src/java.base/share/classes/java/math/BigDecimal.java 2018-09-28 11:28:49.545908797 +0700 +++ new/src/java.base/share/classes/java/math/BigDecimal.java 2018-09-28 11:28:49.125908797 +0700 @@ -290,7 +290,7 @@ }; // Cache of common small BigDecimal values. - private static final BigDecimal ZERO_THROUGH_TEN[] = { + private static final BigDecimal[] ZERO_THROUGH_TEN = { new BigDecimal(BigInteger.ZERO, 0, 0, 1), new BigDecimal(BigInteger.ONE, 1, 0, 1), new BigDecimal(BigInteger.TWO, 2, 0, 1), @@ -533,7 +533,7 @@ } } } else { - char coeff[] = new char[len]; + char[] coeff = new char[len]; for (; len > 0; offset++, len--) { c = in[offset]; // have digit @@ -1374,7 +1374,7 @@ long padding = (long) lhs.scale - augend.scale; if (padding != 0) { // scales differ; alignment needed - BigDecimal arg[] = preAlign(lhs, augend, padding, mc); + BigDecimal[] arg = preAlign(lhs, augend, padding, mc); matchScale(arg); lhs = arg[0]; augend = arg[1]; @@ -1913,7 +1913,7 @@ * @since 1.5 */ public BigDecimal remainder(BigDecimal divisor) { - BigDecimal divrem[] = this.divideAndRemainder(divisor); + BigDecimal[] divrem = this.divideAndRemainder(divisor); return divrem[1]; } @@ -1943,7 +1943,7 @@ * @since 1.5 */ public BigDecimal remainder(BigDecimal divisor, MathContext mc) { - BigDecimal divrem[] = this.divideAndRemainder(divisor, mc); + BigDecimal[] divrem = this.divideAndRemainder(divisor, mc); return divrem[1]; } @@ -3633,7 +3633,7 @@ * Powers of 10 which can be represented exactly in {@code * double}. */ - private static final double DOUBLE_10_POW[] = { + private static final double[] DOUBLE_10_POW = { 1.0e0, 1.0e1, 1.0e2, 1.0e3, 1.0e4, 1.0e5, 1.0e6, 1.0e7, 1.0e8, 1.0e9, 1.0e10, 1.0e11, 1.0e12, 1.0e13, 1.0e14, 1.0e15, 1.0e16, 1.0e17, @@ -3644,7 +3644,7 @@ * Powers of 10 which can be represented exactly in {@code * float}. */ - private static final float FLOAT_10_POW[] = { + private static final float[] FLOAT_10_POW = { 1.0e0f, 1.0e1f, 1.0e2f, 1.0e3f, 1.0e4f, 1.0e5f, 1.0e6f, 1.0e7f, 1.0e8f, 1.0e9f, 1.0e10f }; @@ -3952,7 +3952,7 @@ 1000000000000000000L // 18 / 10^18 }; - private static volatile BigInteger BIG_TEN_POWERS_TABLE[] = { + private static volatile BigInteger[] BIG_TEN_POWERS_TABLE = { BigInteger.ONE, BigInteger.valueOf(10), BigInteger.valueOf(100), @@ -3979,7 +3979,7 @@ private static final int BIG_TEN_POWERS_TABLE_MAX = 16 * BIG_TEN_POWERS_TABLE_INITLEN; - private static final long THRESHOLDS_TABLE[] = { + private static final long[] THRESHOLDS_TABLE = { Long.MAX_VALUE, // 0 Long.MAX_VALUE/10L, // 1 Long.MAX_VALUE/100L, // 2 @@ -4712,7 +4712,7 @@ * to be closed to the preferred scale. */ private static BigDecimal createAndStripZerosToMatchScale(BigInteger intVal, int scale, long preferredScale) { - BigInteger qr[]; // quotient-remainder pair + BigInteger[] qr; // quotient-remainder pair while (intVal.compareMagnitude(BigInteger.TEN) >= 0 && scale > preferredScale) { if (intVal.testBit(0))