You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2014/08/26 19:35:18 UTC

svn commit: r1620672 - /tomcat/trunk/java/org/apache/tomcat/util/http/Cookies.java

Author: markt
Date: Tue Aug 26 17:35:17 2014
New Revision: 1620672

URL: http://svn.apache.org/r1620672
Log:
Fix refactoring snafu

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/http/Cookies.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/Cookies.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/Cookies.java?rev=1620672&r1=1620671&r2=1620672&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/Cookies.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/Cookies.java Tue Aug 26 17:35:17 2014
@@ -145,7 +145,7 @@ public final class Cookies {
         while (pos >= 0) {
             MessageBytes cookieValue = headers.getValue(pos);
 
-            if (cookieValue != null && cookieValue.isNull() ) {
+            if (cookieValue != null && !cookieValue.isNull() ) {
                 if (cookieValue.getType() != MessageBytes.T_BYTES ) {
                     Exception e = new Exception();
                     log.warn("Cookies: Parsing cookie as String. Expected bytes.", e);
@@ -252,7 +252,7 @@ public final class Cookies {
      * RFC 2965
      * JVK
      */
-    protected final void processCookieHeader(byte bytes[], int off, int len){
+    final void processCookieHeader(byte bytes[], int off, int len){
         if (len <= 0 || bytes == null) {
             return;
         }



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