re PR libgcj/2429 (java.text.MessageFormat should usefully set text on exceptions)

2001-04-02  Torsten Rueger  <torsten.rueger@firsthop.com>

	* java/text/MessageFormat.java (setLocale): Added missing `else'.
	For PR libgcj/2429.

From-SVN: r41012
This commit is contained in:
Torsten Rueger 2001-04-02 19:55:56 +00:00 committed by Tom Tromey
parent 5152512c2e
commit 5f82d4f21c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
* java/text/MessageFormat.java (setLocale): Added missing `else'.
For PR libgcj/2429.
2001-03-30 Tom Tromey <tromey@redhat.com>
* jni.cc (add_char): Correctly encode non-ascii characters.

View File

@ -88,7 +88,7 @@ final class MessageFormatElement
int val = DateFormat.DEFAULT;
if (style == null)
;
if (style.equals("short"))
else if (style.equals("short"))
val = DateFormat.SHORT;
else if (style.equals("medium"))
val = DateFormat.MEDIUM;