Author: markt
Date: Wed May 21 19:22:48 2014
New Revision: 1596656
URL: http://svn.apache.org/r1596656
Log:
Apply patch 09 from jboynes to improve cookie handling.
Code cleanup.
I did not remove the final markers from the static methods as I see no need to
remove them and good reasons to keep them.
The patch should be safe since the logic is unchanged.
Modified:
tomcat/trunk/java/org/apache/tomcat/util/http/CookieSupport.java
Modified: tomcat/trunk/java/org/apache/tomcat/util/http/CookieSupport.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/CookieSupport.java?rev=1596656&r1=1596655&r2=1596656&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/CookieSupport.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/CookieSupport.java Wed May 21
19:22:48 2014
@@ -131,11 +131,11 @@ public final class CookieSupport {
V0_SEPARATOR_FLAGS[i] = false;
HTTP_SEPARATOR_FLAGS[i] = false;
}
- for (int i = 0; i < V0_SEPARATORS.length; i++) {
- V0_SEPARATOR_FLAGS[V0_SEPARATORS[i]] = true;
+ for (char V0_SEPARATOR : V0_SEPARATORS) {
+ V0_SEPARATOR_FLAGS[V0_SEPARATOR] = true;
}
- for (int i = 0; i < HTTP_SEPARATORS.length; i++) {
- HTTP_SEPARATOR_FLAGS[HTTP_SEPARATORS[i]] = true;
+ for (char HTTP_SEPARATOR : HTTP_SEPARATORS) {
+ HTTP_SEPARATOR_FLAGS[HTTP_SEPARATOR] = true;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]