You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2002/02/07 15:03:51 UTC

cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient Cookie.java

dion        02/02/07 06:03:51

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        Cookie.java
  Log:
  Added javadoc comments about get/setExpiryDate being immutable
  
  Revision  Changes    Path
  1.11      +11 -4     jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Cookie.java
  
  Index: Cookie.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Cookie.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Cookie.java	5 Jan 2002 11:15:59 -0000	1.10
  +++ Cookie.java	7 Feb 2002 14:03:51 -0000	1.11
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Cookie.java,v 1.10 2002/01/05 11:15:59 vmassol Exp $
  - * $Revision: 1.10 $
  - * $Date: 2002/01/05 11:15:59 $
  + * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Cookie.java,v 1.11 2002/02/07 14:03:51 dion Exp $
  + * $Revision: 1.11 $
  + * $Date: 2002/02/07 14:03:51 $
    * ====================================================================
    *
    * The Apache Software License, Version 1.1
  @@ -80,7 +80,8 @@
    * @author <a href="mailto:jericho@thinkfree.com">Park, Sung-Gu</a>
    * @author <a href="mailto:dsale@us.britannica.com">Doug Sale</a>
    * @author Rod Waldhoff
  - * @version $Revision: 1.10 $ $Date: 2002/01/05 11:15:59 $
  + * @author dIon Gillard
  + * @version $Revision: 1.11 $ $Date: 2002/02/07 14:03:51 $
    */
   
   public class Cookie extends NameValuePair implements Serializable {
  @@ -155,6 +156,9 @@
       /**
        * Returns my expiration {@link Date}, or <tt>null</tt>
        * if none exists.
  +     * <p><strong>Note:</strong> the object returned by this method is 
  +     * considered immutable. Changing it (e.g. using setTime()) could result
  +     * in undefined behaviour. Do so at your peril. </p>
        * @return my expiration {@link Date}, or <tt>null</tt>.
        */
       public Date getExpiryDate() {
  @@ -174,6 +178,9 @@
        * implement to this specification should be aware of "old" cookies and
        * Expires.
        * </p>
  +     * <p><strong>Note:</strong> the object returned by this method is considered
  +     * immutable. Changing it (e.g. using setTime()) could result in undefined 
  +     * behaviour. Do so at your peril.</p>
        * @param expiryDate the {@link Date} after which this cookie is no longer valid.
        */
       public void setExpiryDate (Date expiryDate) {
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>