diff options
author | Michael Koch <konqueror@gmx.de> | 2005-01-06 11:38:48 +0000 |
---|---|---|
committer | Michael Koch <konqueror@gmx.de> | 2005-01-06 11:38:48 +0000 |
commit | 39703a09c2cdd8194897b775fa917bae8f39b49b (patch) | |
tree | 9526b6faefd3ec17837b9eb7e34bf64a29e55d80 | |
parent | 49660c06d78c7851acc55fe065d47215dfc99633 (diff) | |
download | classpath-39703a09c2cdd8194897b775fa917bae8f39b49b.tar.gz |
2005-01-06 Michael Koch <konqueror@gmx.de>
* java/util/TimeZone.java
(setID): Throw NullPointerException if needed.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | java/util/TimeZone.java | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2005-01-06 Michael Koch <konqueror@gmx.de> + + * java/util/TimeZone.java + (setID): Throw NullPointerException if needed. + 2005-01-05 Mark Wielaard <mark@klomp.org> * lib/gen-classlist.sh.in: Don't split locales in classes.locale1 diff --git a/java/util/TimeZone.java b/java/util/TimeZone.java index 39cdcd3e2..0685e6046 100644 --- a/java/util/TimeZone.java +++ b/java/util/TimeZone.java @@ -989,9 +989,13 @@ public abstract class TimeZone implements java.io.Serializable, Cloneable * 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; } |