mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
ICU-8287 Merged r29347 from trunk to support varargs in MessageFormat#format.
X-SVN-Rev: 29349
This commit is contained in:
parent
7bf3a5e46d
commit
983a803f3d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue