2003-12-19 Michael Koch <konqueror@gmx.de>
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 19 Dec 2003 09:53:06 +0000 (09:53 +0000)
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 19 Dec 2003 09:53:06 +0000 (09:53 +0000)
* java/text/MessageFormat.java
(MessageFormat): New constructor.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74828 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/text/MessageFormat.java

index aeca312..50cf99a 100644 (file)
@@ -1,5 +1,10 @@
 2003-12-19  Michael Koch  <konqueror@gmx.de>
 
+       * java/text/MessageFormat.java
+       (MessageFormat): New constructor.
+
+2003-12-19  Michael Koch  <konqueror@gmx.de>
+
        * gnu/java/net/protocol/jar/Handler.java
        (parseURL): New method.
        (toExternalForm): New method.
index caeb726..e34fe2c 100644 (file)
@@ -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);
   }