This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: PR 2429


I'm checking this in.  This fixes the "easy" part of PR 2429.

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

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

Tom

Index: java/text/MessageFormat.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/text/MessageFormat.java,v
retrieving revision 1.5
diff -u -r1.5 MessageFormat.java
--- MessageFormat.java	2001/02/07 22:46:28	1.5
+++ MessageFormat.java	2001/04/02 19:53:15
@@ -88,7 +88,7 @@
 	  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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]