diff options
author | Michael Koch <konqueror@gmx.de> | 2003-12-19 09:53:06 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-12-19 09:53:06 +0000 |
commit | f1af10c25d71873b4d1a1274e090ac4147294919 (patch) | |
tree | eed63cb8a8d24fbfa5bb43ce167eadd8c5d26f8b /libjava/java/text | |
parent | 177dcc4bad7cf14a1404020dada41185540c5944 (diff) | |
download | gcc-f1af10c25d71873b4d1a1274e090ac4147294919.zip gcc-f1af10c25d71873b4d1a1274e090ac4147294919.tar.gz gcc-f1af10c25d71873b4d1a1274e090ac4147294919.tar.bz2 |
2003-12-19 Michael Koch <konqueror@gmx.de>
* java/text/MessageFormat.java
(MessageFormat): New constructor.
From-SVN: r74828
Diffstat (limited to 'libjava/java/text')
-rw-r--r-- | libjava/java/text/MessageFormat.java | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/libjava/java/text/MessageFormat.java b/libjava/java/text/MessageFormat.java index caeb726..e34fe2c 100644 --- a/libjava/java/text/MessageFormat.java +++ b/libjava/java/text/MessageFormat.java @@ -454,11 +454,25 @@ public class MessageFormat extends Format * Creates a new MessageFormat object with * the specified pattern * - * @param aPattern The Pattern + * @param pattern The Pattern + */ + public MessageFormat(String pattern) + { + this(pattern, Locale.getDefault()); + } + + /** + * Creates a new MessageFormat object with + * the specified pattern + * + * @param pattern The Pattern + * @param locale The Locale to use + * + * @since 1.4 */ - public MessageFormat (String pattern) + public MessageFormat(String pattern, Locale locale) { - locale = Locale.getDefault(); + this.locale = locale; applyPattern (pattern); } |