/[classpath]/classpath/java/util/SimpleTimeZone.java
ViewVC logotype

Diff of /classpath/java/util/SimpleTimeZone.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18.2.3 by gnu_andrew, Mon Jan 24 01:59:54 2005 UTC revision 1.18.2.4 by gnu_andrew, Sat Feb 19 10:50:44 2005 UTC
# Line 1  Line 1 
1  /* java.util.SimpleTimeZone  /* java.util.SimpleTimeZone
2     Copyright (C) 1998, 1999, 2000, 2003, 2004 Free Software Foundation, Inc.     Copyright (C) 1998, 1999, 2000, 2003, 2004, 2005  Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 228  public class SimpleTimeZone extends Time Line 228  public class SimpleTimeZone extends Time
228     * startMode, endMode and dstSavings.  And there is a optional section     * startMode, endMode and dstSavings.  And there is a optional section
229     * as described in writeObject.     * as described in writeObject.
230     * </dd>     * </dd>
231       * </dl>
232     *     *
233     * XXX - JDK 1.2 Beta 4 docu states 1.1.4, but my 1.1.5 has the old     * XXX - JDK 1.2 Beta 4 docu states 1.1.4, but my 1.1.5 has the old
234     * version.     * version.
# Line 424  public class SimpleTimeZone extends Time Line 425  public class SimpleTimeZone extends Time
425     */     */
426    private int checkRule(int month, int day, int dayOfWeek)    private int checkRule(int month, int day, int dayOfWeek)
427    {    {
428        if (month < 0 || month > 11)
429          throw new IllegalArgumentException("month out of range");
430    
431      int daysInMonth = getDaysInMonth(month, 1);      int daysInMonth = getDaysInMonth(month, 1);
432      if (dayOfWeek == 0)      if (dayOfWeek == 0)
433        {        {

Legend:
Removed from v.1.18.2.3  
changed lines
  Added in v.1.18.2.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26