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: FYI: re-merge Date


I'm checking this in.
This pulls in a simple fix from Classpath.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>
	* java/util/Date.java: Re-merged with Classpath.

Index: java/util/Date.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/Date.java,v
retrieving revision 1.8
diff -u -r1.8 Date.java
--- java/util/Date.java 2001/07/31 03:01:47 1.8
+++ java/util/Date.java 2001/09/05 18:10:07
@@ -247,12 +247,13 @@
     return (int) time ^ (int) (time >>> 32);
   }
 
-  private String[] weekNames = { "Sun", "Mon", "Tue", "Wed",
-				 "Thu", "Fri", "Sat" };
-  
-  private String[] monthNames = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
-				  "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
-  
+  private static final String[] weekNames = { "Sun", "Mon", "Tue", "Wed",
+					      "Thu", "Fri", "Sat" };
+
+  private static final String[] monthNames = { "Jan", "Feb", "Mar", "Apr",
+					       "May", "Jun", "Jul", "Aug",
+					       "Sep", "Oct", "Nov", "Dec" };
+
   public String toString()
   {
     Calendar cal = Calendar.getInstance();


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