[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: fix for TimeZone error checking
Kaffe CVS
cvs-commits at kaffe.org
Fri Jan 7 11:02:48 PST 2005
PatchSet 5813
Date: 2005/01/07 18:57:56
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Resynced with GNU Classpath: fix for TimeZone error checking
2005-01-07 Dalibor Topic <robilad at kaffe.org>
Resynced with GNU Classpath.
2005-01-06 Michael Koch <konqueror at gmx.de>
* java/util/TimeZone.java
(setID): Throw NullPointerException if needed.
Members:
ChangeLog:1.3357->1.3358
libraries/javalib/java/util/TimeZone.java:1.20->1.21
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3357 kaffe/ChangeLog:1.3358
--- kaffe/ChangeLog:1.3357 Fri Jan 7 18:52:52 2005
+++ kaffe/ChangeLog Fri Jan 7 18:57:56 2005
@@ -2,6 +2,15 @@
Resynced with GNU Classpath.
+ 2005-01-06 Michael Koch <konqueror at gmx.de>
+
+ * java/util/TimeZone.java
+ (setID): Throw NullPointerException if needed.
+
+2005-01-07 Dalibor Topic <robilad at kaffe.org>
+
+ Resynced with GNU Classpath.
+
2005-01-05 Ranjit Mathew <rmathew at hotmail.com>
* java/util/IdentityHashMap.java (put): Replace mistaken use
Index: kaffe/libraries/javalib/java/util/TimeZone.java
diff -u kaffe/libraries/javalib/java/util/TimeZone.java:1.20 kaffe/libraries/javalib/java/util/TimeZone.java:1.21
--- kaffe/libraries/javalib/java/util/TimeZone.java:1.20 Wed Nov 10 10:50:45 2004
+++ kaffe/libraries/javalib/java/util/TimeZone.java Fri Jan 7 18:57:58 2005
@@ -989,9 +989,13 @@
* Sets the identifier of this time zone. For instance, PST for
* Pacific Standard Time.
* @param id the new time zone ID.
+ * @throws NullPointerException if <code>id</code> is <code>null</code>
*/
public void setID(String id)
{
+ if (id == null)
+ throw new NullPointerException();
+
this.ID = id;
}
More information about the kaffe
mailing list