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: simple GregorianCalendar change


I'm checking this in to both Classpath and the trunk.  It is a
trivial cleanup.

2001-05-15  Tom Tromey  <tromey@redhat.com>

	* java/util/GregorianCalendar.java (computeTime): Only call
	getTimeZone() once.

Tom

Index: java/util/GregorianCalendar.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/GregorianCalendar.java,v
retrieving revision 1.9
diff -u -r1.9 GregorianCalendar.java
--- GregorianCalendar.java	2001/05/10 18:13:16	1.9
+++ GregorianCalendar.java	2001/05/15 21:42:55
@@ -405,7 +405,7 @@
 
     TimeZone zone = getTimeZone();
     int rawOffset = isSet[ZONE_OFFSET]
-      ? fields[ZONE_OFFSET] : getTimeZone().getRawOffset();
+      ? fields[ZONE_OFFSET] : zone.getRawOffset();
 
     int dayOfYear = daysOfYear[0] + daysOfYear[1];
     int month = (dayOfYear * 5 + 3) / (31 + 30 + 31 + 30 + 31);


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