< prev index next >

test/java/text/Format/MessageFormat/LargeMessageFormat.java

Print this page

        

*** 53,74 **** private static final int REPEATS = 89; private static void testFormat() { // construct large argument array Object[] sample = { ! new Integer(0), // replace with running count below "hello", new Date(89, 10, 9), ! new Integer(567890), ! new Double(1234.50) }; int samples = sample.length; Object[] arguments = new Object[REPEATS * (samples + 1)]; for (int i = 0; i < REPEATS; i++) { System.arraycopy(sample, 0, arguments, i * samples, samples); ! arguments[i * samples] = new Integer(i); } // construct large template StringBuffer template = new StringBuffer(); for (int i = 0; i < REPEATS; i++) { --- 53,75 ---- private static final int REPEATS = 89; private static void testFormat() { // construct large argument array + @SuppressWarnings("deprecation") Object[] sample = { ! 0, // replace with running count below "hello", new Date(89, 10, 9), ! 567890, ! 1234.50 }; int samples = sample.length; Object[] arguments = new Object[REPEATS * (samples + 1)]; for (int i = 0; i < REPEATS; i++) { System.arraycopy(sample, 0, arguments, i * samples, samples); ! arguments[i * samples] = i; } // construct large template StringBuffer template = new StringBuffer(); for (int i = 0; i < REPEATS; i++) {
< prev index next >