示例#1
0
 /**
  * Returns the comment describing the purpose of this cookie, or <code>null</code> if the cookie
  * has no comment.
  *
  * @return a <code>String</code> containing the comment, or <code>null</code> if none
  * @see #setComment
  */
 public String getComment() {
   if (comment == null && usingLazyCookieState) {
     final String commentStr = lazyCookieState.getComment().toString(Charsets.ASCII_CHARSET);
     comment = (version == 1) ? unescape(commentStr) : null;
   }
   return comment;
 }