[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
This commit is contained in:
parent
2b816e14b7
commit
affe6f69d1
3 changed files with 22 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue