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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org