commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/cookie CookiePolicy.java
Date Sat, 01 Feb 2003 23:35:44 GMT
olegk       2003/02/01 15:35:44

  Modified:    httpclient/src/java/org/apache/commons/httpclient/cookie
                        CookiePolicy.java
  Log:
  Removes unnecessary waring in CookieSpec class when cookie policy system property is not
specified
  
  Submitted by Oleg Kalnichevski
  
  Revision  Changes    Path
  1.7       +7 -5      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/cookie/CookiePolicy.java
  
  Index: CookiePolicy.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/cookie/CookiePolicy.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- CookiePolicy.java	28 Jan 2003 04:40:23 -0000	1.6
  +++ CookiePolicy.java	1 Feb 2003 23:35:43 -0000	1.7
  @@ -121,8 +121,10 @@
           } else if ("RFC2109".equalsIgnoreCase(s)) {
               setDefaultPolicy(RFC2109);
           } else {
  -            LOG.warn("Unrecognized cookiespec property '" + s
  -                + "' - using default");
  +            if (s != null) {
  +                LOG.warn("Unrecognized cookiespec property '" + s
  +                    + "' - using default");
  +            }
               setDefaultPolicy(defaultPolicy);
           }
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message