< prev index next >

src/com/sun/javatest/EditJTI.java

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

@@ -69,11 +69,11 @@
          * @param i18n A resource bundle in which to find the detail message.
          * @param s The key for the detail message.
          * @param o An argument to be formatted with the detail message by
          * {@link java.text.MessageFormat#format}
          */     BadArgs(ResourceBundle i18n, String s, Object o) {
-            super(MessageFormat.format(i18n.getString(s), new Object[] {o}));
+            super(MessageFormat.format(i18n.getString(s), o));
         }
 
 
         /**
          * Create a BadArgs exception.
< prev index next >