This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: simple GregorianCalendar change
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Subject: Patch: simple GregorianCalendar change
- From: Tom Tromey <tromey at redhat dot com>
- Date: 15 May 2001 15:58:58 -0600
- Reply-To: tromey at redhat dot com
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);