< prev index next >

src/com/sun/interview/ListQuestion.java

Print this page
rev 152 : 7902253: Remove unnecessary array creation for varargs parameters
7902245: Correct Agent.productVersion
Reviewed-by: jjg

@@ -135,12 +135,11 @@
                     }
                 }
 
                 // try and find an unused unique value v not used by any other default summary
                 for (int v = 0; v < bodies.size(); v++) {
-                    String s = MessageFormat.format(i18n.getString("lp.newValue"),
-                                                    new Object[] { new Integer(v) });
+                    String s = MessageFormat.format(i18n.getString("lp.newValue"), v);
                     // check s is not the same as any current default summary;
                     // if it is, reset it to null
                     for (int i = 0; i < bodies.size(); i++) {
                         Body b = (bodies.elementAt(i));
                         if (s.equals(b.defaultSummary)) {
< prev index next >