aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util/TimeZone.java
diff options
context:
space:
mode:
authorMichael Koch <mkoch@gcc.gnu.org>2005-01-10 18:26:40 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2005-01-10 18:26:40 +0000
commitaffe6f69d1b62bd4c56c9f3fa5d72430a3847253 (patch)
tree5ee3bd69fabae06c836eddab98485e50c5386c7c /libjava/java/util/TimeZone.java
parent2b816e14b71d51ccf05dd31cc3d8d4dcf9e83d16 (diff)
downloadgcc-affe6f69d1b62bd4c56c9f3fa5d72430a3847253.zip
gcc-affe6f69d1b62bd4c56c9f3fa5d72430a3847253.tar.gz
gcc-affe6f69d1b62bd4c56c9f3fa5d72430a3847253.tar.bz2
[multiple changes]
2005-01-10 Michael Koch <konqueror@gmx.de> * java/util/SimpleTimeZone.java (checkRule): Throw IllegalArgumentException on invalid month values. * java/util/TimeZone.java (setID): Throw NullPointerException if needed. 2005-01-10 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/util/SimpleTimeZone.java (getOffset): offset end date with daylight savings From-SVN: r93149
Diffstat (limited to 'libjava/java/util/TimeZone.java')
-rw-r--r--libjava/java/util/TimeZone.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/libjava/java/util/TimeZone.java b/libjava/java/util/TimeZone.java
index 39cdcd3..0685e60 100644
--- a/libjava/java/util/TimeZone.java
+++ b/libjava/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;
}