ICU-8287 Merged r29347 from trunk to support varargs in MessageFormat#format.

X-SVN-Rev: 29349
This commit is contained in:
Yoshito Umaoka 2011-01-20 21:10:12 +00:00
parent 7bf3a5e46d
commit 983a803f3d

View file

@ -1,6 +1,6 @@
/*
**********************************************************************
* Copyright (c) 2004-2010, International Business Machines
* Copyright (c) 2004-2011, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Author: Alan Liu
@ -1093,7 +1093,7 @@ public class MessageFormat extends UFormat {
* @throws IllegalArgumentException if this format uses named arguments
* @stable ICU 3.0
*/
public static String format(String pattern, Object[] arguments) {
public static String format(String pattern, Object... arguments) {
MessageFormat temp = new MessageFormat(pattern);
return temp.format(arguments);
}