/[classpath]/classpath/java/text/DateFormat.java
ViewVC logotype

Diff of /classpath/java/text/DateFormat.java

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

revision 1.7 by tromey, Thu Jun 12 03:25:31 2003 UTC revision 1.8 by bryce, Sun Sep 28 04:25:44 2003 UTC
# Line 151  public abstract class DateFormat extends Line 151  public abstract class DateFormat extends
151    {    {
152      if (obj instanceof Number)      if (obj instanceof Number)
153        obj = new Date(((Number) obj).longValue());        obj = new Date(((Number) obj).longValue());
154        else if (! (obj instanceof Date))
155          throw new IllegalArgumentException ("Cannot format given Object as a Date");
156      return format ((Date) obj, buf, pos);      return format ((Date) obj, buf, pos);
157    }    }
158    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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