2003-12-19 Michael Koch <konqueror@gmx.de>

* java/text/MessageFormat.java
	(MessageFormat): New constructor.

From-SVN: r74828
This commit is contained in:
Michael Koch 2003-12-19 09:53:06 +00:00 committed by Michael Koch
parent 177dcc4bad
commit f1af10c25d
2 changed files with 22 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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

View 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)
public MessageFormat(String pattern)
{
locale = Locale.getDefault();
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, Locale locale)
{
this.locale = locale;
applyPattern (pattern);
}